mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-20 05:14:09 -04:00
refactoring
This commit is contained in:
parent
706dba104d
commit
6cd9eb44fb
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue