Updated scripts

This commit is contained in:
2025-08-09 22:51:01 +02:00
parent 179ab2707f
commit 9ad2f5aa66
5 changed files with 15 additions and 18 deletions

View File

@@ -76,14 +76,14 @@ sleep 1
# Create backup/snapshot
if pacman -Qs timeshift >/dev/null; then
CONFIG_FILE="/etc/timeshift/timeshift.json"
if [ -f "$CONFIG_FILE" ]; then
BTRFS_MODE=$(jq '.btrfs_mode' "$CONFIG_FILE")
if [ "$BTRFS_MODE" == '"true"' ]; then
printf -- '\033[33m Creating backup/snapshot\n\033[37m'
sudo timeshift --create --comments "Update script"
fi
fi
# CONFIG_FILE="/etc/timeshift/timeshift.json"
# if [ -f "$CONFIG_FILE" ]; then
# BTRFS_MODE=$(jq '.btrfs_mode' "$CONFIG_FILE")
# if [ "$BTRFS_MODE" == '"true"' ]; then
printf -- '\033[33m Creating backup/snapshot\n\033[37m'
sudo timeshift --create --comments "Update script"
# fi
# fi
fi
# Enable multilib (if applicable)