Permiso denegado para build.sh archivo


$. /build.sh quiet quiet verify

/home/travis/build.sh: línea 59: ./build.sh: Permiso denegado.

El comando ". /build.sh quiet verificación silenciosa " salió con 126.

introduzca la descripción de la imagen aquí

 25
Author: Amit Kumar, 2017-02-10

3 answers

Parece que necesita verificar el archivo build.sh con permisos de ejecución. Por favor, intente lo siguiente desde su propia máquina:

git update-index --add --chmod=+x build.sh
git commit -m 'Make build.sh executable'
git push
 49
Author: joepd,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-02-12 11:30:28

Puede otorgar el permiso necesario agregando estas líneas a .travis.yml

before_install:
  - chmod +x build.sh
 29
Author: Lanayx,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-03-10 09:20:38

Ejecute el script usando bash

Otra opción sería ejecutar el script usando bash, esto omitiría la necesidad de modificar los permisos de los archivos.

bash path/to/file.sh

Alternativamente:

sh path/to/file.sh

Nótese que

En este caso no eres ejecutando el script en sí, estás ejecutando bash o sh que luego ejecuta el script. Por lo tanto, el script no necesita ser ejecutable.

¿Tiene sentido?

 2
Author: Jesse van der Pluijm,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-10-19 06:14:19