feat: dkprune defaults
This commit is contained in:
parent
83048705cd
commit
0d47c0921f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user