今天在运行transformer-xl的脚本的时候,出现了下面的错误:
=== Acquiring datasets ===
---
getdata.sh: 7: getdata.sh: [[: not found
- Downloading WikiText-103 (WT2)
getdata.sh: 19: getdata.sh: [[: not found
- Downloading enwik8 (Character)
getdata.sh: 30: getdata.sh: [[: not found
- Downloading text8 (Character)
getdata.sh: 40: getdata.sh: [[: not found
- Downloading Penn Treebank (PTB)
getdata.sh: 49: getdata.sh: [[: not found
- Downloading 1B words
getdata.sh: 73: getdata.sh: [[: not found
---
Happy language modeling :)
我的运行命令为:
sh getdata.sh
解决方法
bash getdata.sh
参考文献
[1].Linux shell脚本执行提示错误[[: not found. https://blog.csdn.net/lucykingljj/article/details/48519069