Skip to content

Commit 483907e

Browse files
committed
fix
1 parent 480c0a6 commit 483907e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usr/libexec/helper-scripts/sudo-tools-enable

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ file_list=(
1616

1717
for file_item in "${file_list[@]}"; do
1818
if test -f "$file_item"; then
19-
if ! test -x "$file_item"; then
20-
chmod --verbose +x -- "$file_item"
19+
if command -v "$file_item" &>/dev/null; then
20+
chmod --verbose o+x -- "$file_item"
2121
fi
2222
fi
2323
done

0 commit comments

Comments
 (0)