Commit 322a7e0d authored by Fjen Undso's avatar Fjen Undso
Browse files

fix ftp directory check

parent bfe481f2
......@@ -97,7 +97,7 @@ if [ "$FTPTYPE" != "ftp" ] && [ "$FTPTYPE" != "sftp" ]; then
failftp=0
else
### FTP: directory permission check
ftppwd=$(execftp "mkdir -p $FTPDIR/$date && cd $FTPDIR/$date; pwd; exit")
ftppwd=$(execftp "mkdir -p $FTPDIR/$date; cd $FTPDIR/$date; pwd; exit")
FTPDIRnoslash=${FTPDIR%\/} # remove trailing /
if [[ "$ftppwd" != *"$FTPDIRnoslash/$date" ]]; then
echo "Error: failed to create $FTPDIRnoslash/$date on ftp" >&2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment