mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
feat: Add system package update to setup script
Co-authored-by: aider (gemini/gemini-2.5-flash) <aider@aider.chat>
This commit is contained in:
parent
b6a7606e1a
commit
cd9ac5a141
1 changed files with 11 additions and 0 deletions
11
setup.sh
11
setup.sh
|
|
@ -18,6 +18,17 @@ fi
|
|||
|
||||
echo "Detected package manager: $PKG_MANAGER"
|
||||
|
||||
# --- Update System Packages ---
|
||||
echo "Updating system packages..."
|
||||
if [ "$PKG_MANAGER" == "apt" ]; then
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
elif [ "$PKG_MANAGER" == "dnf" ]; then
|
||||
sudo dnf upgrade -y
|
||||
elif [ "$PKG_MANAGER" == "pacman" ]; then
|
||||
sudo pacman -Syu --noconfirm
|
||||
fi
|
||||
echo "System packages updated."
|
||||
|
||||
# --- Install Rust/Cargo if not installed ---
|
||||
if ! command -v cargo &> /dev/null; then
|
||||
echo "Rust/Cargo not found. Installing Rustup..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue