commit f264395
hovercats
·
2022-03-02 09:27:46 +0000 UTC
parent 7a04b6c
groups.sh: fixed line 38. see #1
1 files changed,
+1,
-1
+1,
-1
1@@ -35,7 +35,7 @@ FSDIR=${FSDIR:-/tmp/groups.sh}
2 # clean WID ($1) from group files
3 clean_wid() {
4 t=$(mktemp /tmp/groups.XXXXXX)
5- for x in $(ls "$FSDIR"/group.*); do
6+ for x in "$FSDIR"/group.*; do
7 sed "/$1/d" "$x" >"$t"
8 mv "$t" "$x"
9 done