mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
support: fix typo in mkusers
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>
This commit is contained in:
parent
7ae9ed8163
commit
b083c0ba4b
@ -63,7 +63,7 @@ get_uid() {
|
|||||||
get_ugid() {
|
get_ugid() {
|
||||||
local username="${1}"
|
local username="${1}"
|
||||||
|
|
||||||
awk -F:i -v username="${username}" \
|
awk -F: -v username="${username}" \
|
||||||
'$1 == username { printf( "%d\n", $4 ); }' "${PASSWD}"
|
'$1 == username { printf( "%d\n", $4 ); }' "${PASSWD}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user