Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chmod_x to work with non-relative paths #1470

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

non-bin
Copy link

@non-bin non-bin commented Sep 11, 2024

Originally the chmod_x rule only worked for scripts run with relative paths (eg ./funStuff.sh) but that's not always what we need. Imagine I have a file at /home/alice/scripts/funStuff.sh

$ pwd
/home/alice
# I could run the script with any of these:
$ ./scripts/funStuff.sh
$ ~/scripts/funStuff.sh
$ /home/alice/scripts/funStuff.sh

Originally this rule only worked for scripts run with relative paths (eg `./funStuff.sh`) but that's not always what we need
Imagine I have a file at `/home/alice/scripts/funStuff.sh` and my cwd is `/home/alice` I could run the script with `./scripts/funStuff.sh` or '~/scripts/funStuff.sh` or `/home/alice/scripts/funStuff.sh`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant