diff --git a/bootstrap/autostow.sh b/bootstrap/autostow.sh index b7dd038..3f72b14 100755 --- a/bootstrap/autostow.sh +++ b/bootstrap/autostow.sh @@ -78,18 +78,20 @@ dryrun() { printf "processing %s\n" "$d" done + echo "Done printing directories ................................................." } is_ignored() { IFS=":" for ign in $ignore; do # it is either passed in through our environment variable - # or it starts with a _ which is ignored by default (that's the regex). - # (using herestring to avoid cat>grep) - if [ "$ign" = "$1" ] || [ "$ign/" = "$1" ] || grep -q -e '^_[[:alnum:]]\{1,\}' <<<"$1"; then + if [ "$ign" = "$1" ] || [ "$ign/" = "$1" ]; then return 0 fi done + # or it starts with a _ which is ignored by default (that's the regex). + # (using herestring to avoid cat>grep) + if grep -q -e '^_[[:alnum:]]\{1,\}' <<<"$1"; then return 0; fi return 1 }