Skip to content

Commit

Permalink
Fix typo during update
Browse files Browse the repository at this point in the history
  • Loading branch information
BassT23 committed Jan 3, 2025
1 parent 5027df1 commit 0ddf89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ CONTAINER_BACKUP () {
if [[ "$SNAPSHOT" == true ]]; then
if pct snapshot "$CONTAINER" "Update_$(date '+%Y%m%d_%H%M%S')" &>/dev/null; then
echo -e "${BL}[Info]${GN} Snapshot created${CL}"
echo -e "${BL}[Info]${GN} Deleted old snapshots${CL}"
echo -e "${BL}[Info]${GN} Delete old snapshots${CL}"
LIST=$(pct listsnapshot "$CONTAINER" | sed -n "s/^.*Update\s*\(\S*\).*$/\1/p" | head -n -"$KEEP_SNAPSHOT")
for SNAPSHOTS in $LIST; do
pct delsnapshot "$CONTAINER" Update"$SNAPSHOTS" >/dev/null 2>&1
Expand Down

0 comments on commit 0ddf89f

Please sign in to comment.