mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-19 19:07:50 +00:00
added timestamp variables to exports, formatting
This commit is contained in:
@@ -471,7 +471,7 @@ check_image() {
|
|||||||
# Make required functions and variables available to subprocesses
|
# Make required functions and variables available to subprocesses
|
||||||
export -f check_image datecheck
|
export -f check_image datecheck
|
||||||
export Excludes_string="${Excludes[*]:-}" # Can only export scalar variables
|
export Excludes_string="${Excludes[*]:-}" # Can only export scalar variables
|
||||||
export t_out regbin RepoUrl DaysOld DRunUp jqbin OnlyLabel
|
export t_out regbin RepoUrl DaysOld DRunUp jqbin OnlyLabel RunTimestamp RunEpoch
|
||||||
|
|
||||||
# Check for POSIX xargs with -P option, fallback without async
|
# Check for POSIX xargs with -P option, fallback without async
|
||||||
if (echo "test" | xargs -P 2 >/dev/null 2>&1) && [[ "$MaxAsync" != 0 ]]; then
|
if (echo "test" | xargs -P 2 >/dev/null 2>&1) && [[ "$MaxAsync" != 0 ]]; then
|
||||||
@@ -653,9 +653,9 @@ if [[ -n "${GotUpdates:-}" ]]; then
|
|||||||
done
|
done
|
||||||
unset IFS
|
unset IFS
|
||||||
if [[ "$CleanupCount" == 0 ]]; then
|
if [[ "$CleanupCount" == 0 ]]; then
|
||||||
printf "No backup images to remove.\n"
|
printf "\nNo backup images to remove.\n"
|
||||||
else
|
else
|
||||||
printf "%b%s%b backup images removed.%b\n" "$c_green" "$CleanupCount" "$c_teal" "$c_reset"
|
printf "\n%b%s%b backup images removed.%b\n" "$c_green" "$CleanupCount" "$c_teal" "$c_reset"
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user