update update process
This commit is contained in:
17
updates.d/120-hampack-packages
Normal file
17
updates.d/120-hampack-packages
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# /etc/coredesktop/updaters.d/120-hampack-packages
|
||||
|
||||
HAMPACK_DIR="$HOME/.local/share/HamPack"
|
||||
|
||||
is_installed() {
|
||||
[[ -f "$HAMPACK_DIR/packages.conf" ]]
|
||||
}
|
||||
|
||||
run_update() {
|
||||
echo "→ Updating HamPack packages..."
|
||||
source "$HAMPACK_DIR/utils.sh"
|
||||
source "$HAMPACK_DIR/packages.conf"
|
||||
install_packages "${UTILITIES[@]}"
|
||||
install_packages "${APPLICATIONS[@]}"
|
||||
echo "✓ HamPack packages updated."
|
||||
}
|
||||
Reference in New Issue
Block a user