$ ./build.sh --quiet verify /home/travis/build.sh: line 59: ./build.sh: Permission denied. The command "./build.sh --quiet verify" exited with 126.
To fix the permission denied error in Linux, one needs to change the file permission of the script. Use the “chmod” (change mode) command for this purpose.
To avoid this “permission denied error,” the only thing you have to do is to add “x” or “execution” permission to this “samplescript.sh” file and make it executable for a typical user. Firstly, check out the file permission of the shell script.
Solution to fix the bash: ./program_name: permission denied error. chmod u+x program_name– In this line, the chmod command will change the access mode to execute, denoted by x. only the file's owner will have the permission to execute the file.
Looks like you need to check in the file build.sh
with execution permissions. Please try the following from your own machine:
git update-index --add --chmod=+x build.sh git commit -m 'Make build.sh executable' git push
You can grant the needed permission by adding this lines to the .travis.yml
before_install: - chmod +x build.sh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With