user2998044
user2998044

Reputation: 29

Bad interpreter: No such file or directory on .sh script

Heres the code that return me a bad interpreter when running from terminal in Linux:

#!/bin/bash

for dir in test/*/
do
./install_module.php $dir
done

sass test/Style/test.scss:themes/ModernAqua/css/test.css --style compressed
echo "Sass styles regenerated"

Upvotes: 0

Views: 3997

Answers (1)

Alexander L. Belikoff
Alexander L. Belikoff

Reputation: 5721

Most probably, your install_module.php has a #! directive for an interpreter that is not installed (or is installed somewhere else.) Locate the php binary (which most probably what this script needs) and correct that directive.

Also, by running your outer script with -x parameter to bash will provide more information where exactly the problem is.

Upvotes: 1

Related Questions