Open FAR5HID opened 2 years ago
It works when you give +x
permissions and use ./
because that is the intended behavior by the system.
Check the accepted answer for details: Why do I need to type ./
before executing a program in the current directory?
I don't think you can execute it without the required permission.
I get that, about the path issue. Turns out the script calls itself during execution, for that it needs the +x permission.
System: fedora 35
Trying to run the script without +x execution permission using bash command.
bash wait-for-it.sh google.com:80
(The error message is same for above case even if execution permission is given)
But it works when directly executed given +x.
./wait-for-it.sh google.com:80
Any way I can use the script without giving it execution permission?