backup.sh: se etter git før vi kjører git

This commit is contained in:
2026-01-28 18:14:04 +09:00
parent 75b2c7395c
commit ed9c7849c7

View File

@@ -18,7 +18,11 @@
# I førstnevnte tilfelle må du også registrere boksen i './ssh_config_backup_targets'.
echo "PVV; hjemmelaget backupscript (\$ git commit sha: $(cd /backupz && git rev-parse HEAD) \$)"
if ! command -v git >/dev/null 2>&1; then
echo "PVV; hjemmelaget backupscript (\$ git commit sha: ??? \$)"
else
echo "PVV; hjemmelaget backupscript (\$ git commit sha: $(cd /backupz && git rev-parse HEAD) \$)"
fi
echo
date