mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-06 12:15:02 -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=""
|
||||
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…
Add table
Add a link
Reference in a new issue