allow /etc/docker-prune.conf to overwritedefaults

master
Marc Wäckerlin 6 years ago
parent 882d295f27
commit 5e426c5740
  1. 9
      docker-prune

@ -36,8 +36,15 @@ success() {
append_msg $* 1>&2
}
# commandline parameter evaluation
# default
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
case "$1" in
(--help|-h) less <<EOF

Loading…
Cancel
Save