Skip to content

Commit

Permalink
Update webdavDownload.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
abc1044 authored Jan 11, 2021
1 parent 323fc07 commit 93ea62f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webdavDownload.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
cd
#test download file exist?
#test cadaver service exist?
if ! [ -x "$(command -v cadaver)" ]; then
echo 'Error: cadaver no found,please try:apt install -y cadaver' >&2
exit 1
fi

#set fileAddress
fileAddress=download_bc
fileAddress=download_bc # <---Set download address
if [ ! -d $fileAddress ];then
mkdir $fileAddress
fi
Expand Down Expand Up @@ -36,4 +36,4 @@ bye
EOF

#connect webdav
cadaver https://dav.jianguoyun.com/dav/bc/DownloadVPS/ < $fileAddress/webdavSetup.txt
cadaver https://dav.jianguoyun.com/dav/bc/DownloadVPS/ < $fileAddress/webdavSetup.txt #<---Set upload address

0 comments on commit 93ea62f

Please sign in to comment.