Error running bash script while exporting

Hi guys.

I am trying to execute this very simple script when my project is exported

#!/bin/bash
cd $1
mv index.html index.php

but I got this error in the log file:

Tue May 15 2018 11:25:18 GMT-0300 (BRT)
Couldn't execute script /Users/mviana/Desktop/dash/static/script.sh

Does anyone know why?

Thanks a lot,

Found solution: For Linux and macOS it should be marked as executable (+x).

Thanks,