我一直尝试在终端中运行 bash 脚本但它总是返回:
No such file or directory
program.sh: line 2: cd: /directory/to/my/program: No such file or directory
program.sh: line 3: ./directory: No such file or directory
使用 Ubuntu 20.04.3
答案1
etternalaunch.sh shell 脚本需要从 etterna 目录的父目录运行。etterna 目录的父目录位于~/Downloads/
。将 etternalaunch.sh 文件从 etterna 目录复制到 Downloads 目录,然后再次运行它。
cp ~/Downloads/etterna/etternalaunch.sh ~/Downloads/
cd ~/Downloads/
./etternalaunch.sh