Merge pull request #683 from Neilpang/master

make path first, in case the part doesn't exist.
This commit is contained in:
Serghey Rodin 2016-06-25 11:29:07 +03:00 committed by GitHub
commit 1db2592831

View file

@ -137,8 +137,10 @@ if [ "$type" = 'sftp' ]; then
if [ -z $port ]; then if [ -z $port ]; then
port=22 port=22
fi fi
if sftpc "mkdir $path" > /dev/null 2>&1 ; then
sftmpdir="$path/vst.bK76A9SUkt" sftmpdir="$path/vst.bK76A9SUkt"
sftpc "mkdir $sftmpdir" "rmdir $sftmpdir" > /dev/null 2>&1 sftpc "mkdir $sftmpdir" "rmdir $sftmpdir" > /dev/null 2>&1
fi
rc=$? rc=$?
if [[ "$rc" != 0 ]]; then if [[ "$rc" != 0 ]]; then
case $rc in case $rc in