mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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>
This commit is contained in:
committed by
Peter Korsgaard
parent
13deac1e39
commit
0100c6e402
@@ -450,7 +450,7 @@ main() {
|
|||||||
auto_id=${AUTO_USER_ID}
|
auto_id=${AUTO_USER_ID}
|
||||||
fi
|
fi
|
||||||
for g in ${groups//,/ }; do
|
for g in ${groups//,/ }; do
|
||||||
add_one_group "${g}" ${auto_id}
|
add_one_group "${g}" "${auto_id}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user