Forráskód Böngészése

support/scripts/mkusers: fix shellcheck error related to auto_id

SC2086 is now reported for auto_id since shellcheck 0.9.0:

In support/scripts/mkusers line 453:
                add_one_group "${g}" ${auto_id}
                                     ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

So quote it to get rid of this error.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
[Peter: quote variable instead of disabling check]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Romain Naour 5 hónapja
szülő
commit
0100c6e402
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      support/scripts/mkusers

+ 1 - 1
support/scripts/mkusers

@@ -450,7 +450,7 @@ main() {
                 auto_id=${AUTO_USER_ID}
             fi
             for g in ${groups//,/ }; do
-                add_one_group "${g}" ${auto_id}
+                add_one_group "${g}" "${auto_id}"
             done
         fi
     done