support: fix typo in mkusers
authorPhilip Paeps <philip@paeps.cx>
Wed, 5 Mar 2014 10:04:41 +0000 (11:04 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Mar 2014 18:41:44 +0000 (19:41 +0100)
This fixes the spurious "[: too many arguments" errors from mkusers.

Signed-off-by: Philip Paeps <philip@paeps.cx>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/mkusers

index a67356ab6d218b1f8eff090845664bad28d67aeb..90d1df7f746ca3f8bf4602002cd1499492b02c43 100755 (executable)
@@ -63,7 +63,7 @@ get_uid() {
 get_ugid() {
     local username="${1}"
 
-    awk -F:i -v username="${username}"                          \
+    awk -F: -v username="${username}"                          \
         '$1 == username { printf( "%d\n", $4 ); }' "${PASSWD}"
 }