Skip to content

Commit

Permalink
profcleaner.sh: Change "# CMD" and "#CMD" too
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty-snake committed Jul 9, 2021
1 parent 00cb8b6 commit 0b31c41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tools/profcleaner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ else
profiles=("$@")
fi

sed -i \
-e "s/^blacklist/deny/" \
-e "s/^noblacklist/nodeny/" \
-e "s/^whitelist/allow/" \
-e "s/^nowhitelist/noallow/" \
sed -i -E \
-e "s/^(# |#)?blacklist/\1deny/" \
-e "s/^(# |#)?noblacklist/\1nodeny/" \
-e "s/^(# |#)?whitelist/\1allow/" \
-e "s/^(# |#)?nowhitelist/\1noallow/" \
"${profiles[@]}"

0 comments on commit 0b31c41

Please sign in to comment.