docker-deploy.sh: Gruppenprüfung scheiterte wegen IFS ohne Leerzeichen (id -nG wurde nicht gesplittet)
This commit is contained in:
1 parent
fc560982b2
commit
d19dae1f71
1 file changed
+1
-1
+1
-1
@@ -54,7 +54,7 @@ in_array() {
|
||||
|
||||
user_in_group() {
|
||||
local -a groups
|
||||
read -ra groups <<<"$(id -nG "$1")"
|
||||
IFS=' ' read -ra groups <<<"$(id -nG "$1")"
|
||||
in_array "$2" "${groups[@]}"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user