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=""
|
nosuid=""
|
||||||
if [ "$mode_from_config" = "nosuid" ]; then
|
if [ "$mode_from_config" = "nosuid" ]; then
|
||||||
nosuid="true"
|
nosuid="true"
|
||||||
elif ! seq -w 000 4777 | grep -qw "$mode_from_config"; then
|
else
|
||||||
echo "ERROR: Mode '$mode_from_config' is invalid!" >&2
|
if ! seq -w 000 4777 | grep -qw "$mode_from_config"; then
|
||||||
continue
|
echo "ERROR: Mode '$mode_from_config' is invalid!" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$mode_from_config" = "nosuid" ]; then
|
if [ "$mode_from_config" = "nosuid" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user