diff --git a/.config/shell/bin/chx b/.config/shell/bin/chx index 5bfd1d0..c4ad928 100755 --- a/.config/shell/bin/chx +++ b/.config/shell/bin/chx @@ -3,11 +3,11 @@ # toggles whether a file or group of files is executable for FILE; do - if [ -x "./$FILE" ]; then - chmod -x "./$FILE" && + if [ -x "$FILE" ]; then + chmod -x "$FILE" && echo -e "$FILE: -x" - elif ! [ -x "./$FILE" ]; then - chmod +x "./$FILE" && + elif ! [ -x "$FILE" ]; then + chmod +x "$FILE" && echo -e "$FILE: +x" fi done