diff --git a/.bin/port-clean b/.bin/port-clean index dadca6f..113f478 100755 --- a/.bin/port-clean +++ b/.bin/port-clean @@ -1,6 +1,9 @@ #!/bin/sh -x cd /usr/ports -doas rm -rf pobj/* plist logs packages bulk update distfiles/* +doas rm -rf pobj/* plist logs packages bulk update +case "$1" in + -a) doas rm -rf distfiles/* ;; +esac mkdir -p plist logs packages bulk update doas make fix-permissions