update update process
This commit is contained in:
14
updates.d/100-hampack-pull
Normal file
14
updates.d/100-hampack-pull
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# /etc/coredesktop/updaters.d/100-hampack-pull
|
||||
|
||||
HAMPACK_DIR="$HOME/.local/share/HamPack"
|
||||
|
||||
is_installed() {
|
||||
[[ -d "$HAMPACK_DIR" ]]
|
||||
}
|
||||
|
||||
run_update() {
|
||||
echo "→ Pulling latest HamPack..."
|
||||
git -C "$HAMPACK_DIR" pull --ff-only
|
||||
echo "✓ HamPack pulled."
|
||||
}
|
||||
Reference in New Issue
Block a user