This commit is contained in:
Patrick Schleizer 2019-12-09 02:32:05 -05:00
parent c258376b7e
commit b72eb30056
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -50,7 +50,7 @@ set_file_perms() {
if [ "${capability}" = "none" ]; then
setcap -r "${file}"
else
if ! capsh --print | grep "Bounding set" | grep -q ${capability}; then
if ! capsh --print | grep "Bounding set" | grep -q "${capability}"; then
echo "ERROR: Capability '${capability}' does not exist!"
continue
fi