The "Permission denied" error you're encountering indicates that you don't have
execute permissions for the build.sh script. To fix this, you'll need to grant execute
permissions to the script before running it. Here's how you can do that:
Check Current Permissions:
Run the following command to view the current permissions for the build.sh script:
ls -l build.sh
This will show you the permissions in the format -rwxr-xr-x where the 'x' indicates
execute permissions.
Grant Execute Permissions:
If the script doesn't have execute permissions (lacking 'x'), you can grant them using
the chmod command:
chmod +x build.sh
This command adds execute permissions to the script.
Verify Permissions:
Run ls -l build.sh again to confirm that execute permissions have been granted.
Run the Script:
Now you should be able to run the script:
./build.sh
If successful, this will execute the script.