We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 480c0a6 commit 483907eCopy full SHA for 483907e
usr/libexec/helper-scripts/sudo-tools-enable
@@ -16,8 +16,8 @@ file_list=(
16
17
for file_item in "${file_list[@]}"; do
18
if test -f "$file_item"; then
19
- if ! test -x "$file_item"; then
20
- chmod --verbose +x -- "$file_item"
+ if command -v "$file_item" &>/dev/null; then
+ chmod --verbose o+x -- "$file_item"
21
fi
22
23
done
0 commit comments