[英]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: 从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"
Most probably, your install_module.php
has a #!
最有可能的是,您的install_module.php
具有#!
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. 尚未安装(或已安装在其他地方的解释器)的指令。找到php
二进制文件(该脚本最可能需要的二进制文件)并更正该指令。
Also, by running your outer script with -x
parameter to bash
will provide more information where exactly the problem is. 此外,通过与运行的脚本外-x
参数bash
将提供确切位置的问题的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.