mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-22 19:24:16 +01:00
enclosing some variables in braces due to strings messing up
This commit is contained in:
parent
fc58962f79
commit
42d35b7a03
1 changed files with 2 additions and 2 deletions
|
|
@ -569,7 +569,7 @@ if [[ -n "${GotUpdates:-}" ]]; then
|
||||||
ContRepo=${ContFull%:*}
|
ContRepo=${ContFull%:*}
|
||||||
ContApp=${ContRepo#*/}
|
ContApp=${ContRepo#*/}
|
||||||
ContTag=${ContFull#*:}
|
ContTag=${ContFull#*:}
|
||||||
BackupName="dockcheck/$ContApp:$RunTimestamp_$ContTag"
|
BackupName="dockcheck/${ContApp}:${RunTimestamp}_${ContTag}"
|
||||||
docker tag "$ImageId" "$BackupName"
|
docker tag "$ImageId" "$BackupName"
|
||||||
printf "%b%s backed up as %s%b\n" "$c_teal" "$i" "$BackupName" "$c_reset"
|
printf "%b%s backed up as %s%b\n" "$c_teal" "$i" "$BackupName" "$c_reset"
|
||||||
fi
|
fi
|
||||||
|
|
@ -648,7 +648,7 @@ if [[ -n "${GotUpdates:-}" ]]; then
|
||||||
backup_date=${backup_tag%%_*}
|
backup_date=${backup_tag%%_*}
|
||||||
# UNTAGGING HERE
|
# UNTAGGING HERE
|
||||||
if datecheck "$backup_date" "$DaysKept"; then
|
if datecheck "$backup_date" "$DaysKept"; then
|
||||||
docker rmi "$repo_name:$backup_tag"
|
docker rmi "${repo_name}:${backup_tag}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue