refactoring

This commit is contained in:
Patrick Schleizer 2019-12-20 03:39:25 -05:00
parent ecbba2fd61
commit 98535e3a2b
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -54,9 +54,9 @@ add_statoverride_entry() {
echo_wrapper dpkg-statoverride --add --update "$owner" "$group" "$new_mode" "$file_name"
fi
fi
done < <( stat -c "%n %a %U %G" "${fso%/}/"** )
done < <( stat -c "%n %a %U %G" "${fso_without_trailing_slash}/"** )
else
echo_wrapper dpkg-statoverride --add --update "$owner" "$group" "$mode_from_config" "${fso%/}"
echo_wrapper dpkg-statoverride --add --update "$owner" "$group" "$mode_from_config" "$fso_without_trailing_slash"
fi
}