refactoring

This commit is contained in:
Patrick Schleizer 2019-12-20 03:24:07 -05:00
parent 706dba104d
commit 6cd9eb44fb
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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