Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 .sh 文件重命名为 .command 以使其在双击时执行。
cp -avRi "./source/" "./destination"
但现在我收到“未知路径”错误。我必须以某种方式添加当前路径吗?
那行得通
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"