You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2018. It is now read-only.
I added the line #!/bin/sh to the top, and this gave the desired output.
$ sudo maybe ./demo.sh
maybe has prevented ./demo.sh from performing 2 file system operations:
delete pwd/temp123
create directory pwd/temp123
Do you want to rerun ./demo.sh and permit these operations? [y/N] n
Is it possible to detect, if the script could have been run in the first place, instead of showing these errors ?
The text was updated successfully, but these errors were encountered:
kaustubhhiware
changed the title
Error while executing simple script
Check if script is executable in first place
Jun 3, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To test maybe, I wrote a simple script
I tried giving it the appropriate rights
$ sudo chmod 777 demo.sh $ sudo maybe ./demo.sh - Error executing ./demo.sh: [Errno 8] Exec format error.
I added the line
#!/bin/sh
to the top, and this gave the desired output.Is it possible to detect, if the script could have been run in the first place, instead of showing these errors ?
The text was updated successfully, but these errors were encountered: