From 0d47c0921f74168475695e732d659443b24fa1be Mon Sep 17 00:00:00 2001 From: AngeD Date: Mon, 24 Oct 2022 13:51:45 +0200 Subject: [PATCH] feat: dkprune defaults --- bin/dkprune | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/dkprune b/bin/dkprune index a1b1f53..827bbd9 100755 --- a/bin/dkprune +++ b/bin/dkprune @@ -5,7 +5,9 @@ function usage() { cat << EOF -Usage: $0 -hcCviIna +Usage: $0 [-hcCviIna] +Prune Docker resources. +If no option provided, defaults to -Cvn Options: -h Show this help and exits -c Remove stopped containers @@ -76,6 +78,9 @@ while getopts hcCviIna o; do esac done +if [ "$CLEAN" == 0 ]; then + CLEAN="$((C + v + n))" +fi VALUES=( "$a"