无法执行 .sh 文件

无法执行 .sh 文件

我在使文件可执行时遇到问题。该文件是gatewaystart.sh。我使用命令将包含指定文件的下载文件夹解压到/opt/ibc中

sudo unzip ~/Downloads/IBCLinux-3.18.0.zip -d \
/opt/ibc

接下来,我通过运行使文件可执行

cd /opt/ibc
sudo chmod o+x *.sh */*.sh

我面临的问题是,当我在终端中执行这些命令后运行 gatewaystart.sh 时,该文件不会执行。我尝试执行 bash gatewaystart.sh 和 sh gatewaystart.sh,但出现错误:

gatewaystart.sh: 193: [[: not found
gatewaystart.sh: 195: [[: not found
-e Error: no execute permission for scripts in /opt/ibc/scripts

我们将非常感激您对此事的帮助。

谢谢。

相关内容