refactoring

This commit is contained in:
Patrick Schleizer 2019-12-20 03:43:36 -05:00
parent 9e493a9f48
commit 55933f8876
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -127,7 +127,10 @@ set_file_perms() {
add_statoverride_entry
fi
if ! [ "$capability" = "" ]; then
if [ "$capability" = "" ]; then
continue
fi
if [ "$capability" = "none" ]; then
echo_wrapper setcap -r "$fso"
else
@ -138,7 +141,6 @@ set_file_perms() {
echo_wrapper setcap "${capability}+ep" "$fso"
fi
fi
done < "${config_file}"
}