所以我在我的 .sh 文件中有这个:
#!/bin/bash
echo "Building Space Cubes X for Mac...."
make OS=APPLE -k
if [$? -eq 0]
then
echo "Build completed."
echo "You can find the build under (THIS_FOLDER)/bin/build."
else
echo "Build failed! Check above for error messages!"
fi
问题是,bash 打印出我什至不明白的消息:
./build-mac.sh: line 7: [0: command not found
任何帮助或建议表示赞赏!
我在带有 Bash 的 Mac 上运行。