mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
refactoring
This commit is contained in:
parent
706dba104d
commit
6cd9eb44fb
@ -92,9 +92,11 @@ set_file_perms() {
|
||||
nosuid=""
|
||||
if [ "$mode_from_config" = "nosuid" ]; then
|
||||
nosuid="true"
|
||||
elif ! seq -w 000 4777 | grep -qw "$mode_from_config"; then
|
||||
echo "ERROR: Mode '$mode_from_config' is invalid!" >&2
|
||||
continue
|
||||
else
|
||||
if ! seq -w 000 4777 | grep -qw "$mode_from_config"; then
|
||||
echo "ERROR: Mode '$mode_from_config' is invalid!" >&2
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$mode_from_config" = "nosuid" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user