allow /etc/docker-prune.conf to overwritedefaults

This commit is contained in:
Marc Wäckerlin
2019-03-27 09:22:04 +01:00
parent 882d295f27
commit 5e426c5740

View File

@@ -36,8 +36,15 @@ success() {
append_msg $* 1>&2 append_msg $* 1>&2
} }
# commandline parameter evaluation # default
filter="until=168h" filter="until=168h"
# config file overwrites
if test -e /etc/docker-prune.conf; then
. /etc/docker-prune.conf
fi
# commandline parameter evaluation
while test $# -gt 0; do while test $# -gt 0; do
case "$1" in case "$1" in
(--help|-h) less <<EOF (--help|-h) less <<EOF