docker-deploy.sh: Gruppenprüfung scheiterte wegen IFS ohne Leerzeichen (id -nG wurde nicht gesplittet)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba23d5bcc3
commit
49d3221c91
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