我有一部分代码可以在 git bash 中工作,但当我用它制作脚本时就不行了
你好,很棒的社区,我正在使用 git bash 运行此命令:cp -r thisfolder thatfolder
将文件夹的内容复制到另一个文件夹中,
现在我想用它制作一个脚本来创建一个调度程序运行该脚本,我的脚本看起来像这样,
#!/bin/bash
set -euo pipefail
IFS=$'\n\t
cp -r thisfolder thatfolder && echo done > debug.txt
#the debug.txt is just to know if the script copied stuff
它是一个 .bat 脚本,所有文件夹和脚本都在同一目录中,但由于某种原因,它不会复制文件,因为 git bash 有
任何想法吗?
Hello awesome community i am using git bash to run this command: cp -r thisfolder thatfolder
to copy the contents of a folder in another one
now i want to make a script out of this to create a scheduler to run that script and my script looks like this
#!/bin/bash
set -euo pipefail
IFS=
its a .bat script and all folders and script are on the same directory but for some reason it doesnt copy the files as git bash does
any thoughts??
\n\t
cp -r thisfolder thatfolder && echo done > debug.txt
#the debug.txt is just to know if the script copied stuff
its a .bat script and all folders and script are on the same directory but for some reason it doesnt copy the files as git bash does
any thoughts??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论