mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-22 06:05:38 -06:00
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:
parent
3a9f18fdda
commit
efcd54c0db
6 changed files with 37 additions and 37 deletions
4
mkuid.sh
4
mkuid.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue