设置之后死活不能上传,一开始发现Aria2下载目录后面没有加上’/’
加上之后还是没用,照博主说的bash /root/rcloneupload.sh
发现报错
rcloneupload.sh: line 2: $’r’: command not found
rcloneupload.sh: line 3: $’r’: command not found
rcloneupload.sh: line 4: $’r’: command not found
rcloneupload.sh: line 5: $’r’: command not found
rcloneupload.sh: line 6: $’r’: command not found
rcloneupload.sh: line 13: $’r’: command not found
rcloneupload.sh: line 14: $’r’: command not found
rcloneupload.sh: line 19: syntax error near unexpected token `$'{r”
line 19: `function LoadFile(){
于是用notepad2mod把换行编码转换成unix格式就好了
Rat’s
直接在服务器上转换快些,方法给你:
1、安装dos2unix
Centos:yum install dos2unix -y
Debian/Ubuntu:apt install dos2unix -y
2、转换格式
dos2unix /root/rcloneupload.sh