Fix some shellcheck warnings

Note: This does not modify the configure script, which is a source of a
lot of the remaining shellcheck warnings, because it comes from autoconf
and so it makes little sense to try to fix it here.

Also, it does not modify the scripts in contrib, because they possibly
are maintained at some other place. Similarly with the other scripts
that don't appear to be called from any of the makefiles.
This commit is contained in:
a1346054 2021-08-31 13:24:56 +00:00 committed by Kelvin M. Klann
parent 3a9f18fdda
commit efcd54c0db
6 changed files with 37 additions and 37 deletions

View file

@ -9,8 +9,8 @@ echo "#define FIREJAIL_UIDS_H" >> uids.h
if [ -r /etc/login.defs ]
then
UID_MIN=`awk '/^\s*UID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs`
GID_MIN=`awk '/^\s*GID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs`
UID_MIN="$(awk '/^\s*UID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs)"
GID_MIN="$(awk '/^\s*GID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs)"
fi
# use default values if not found