From c6593008650e10e9910cff7721dd3825b7cf13c4 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 1 Aug 2025 12:49:30 -0600 Subject: [PATCH] setup_container_runtime.sh: Drop bc Use bash instead for math. Thanks to John Mulligan for the suggestion. Signed-off-by: Zack Cerza --- scripts/setup_container_runtime.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index c1634fda..313504d7 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -36,7 +36,7 @@ function setup_container_runtime () { if [ -d $PODMAN_STORAGE_DIR ]; then sudo chgrp -R $(groups | cut -d' ' -f1) $PODMAN_STORAGE_DIR if [ $(podman unshare du -s --block-size=1G $PODMAN_STORAGE_DIR | awk '{print $1}') -ge 50 ]; then - time podman image prune --filter=until="$(echo '24*7' | bc)h" --all --force + time podman image prune --filter=until="$((24*7))h" --all --force time podman system prune --force test "$PODMAN_MAJOR_VERSION" -ge 5 && time podman system check --repair --quick fi -- 2.39.5