mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
make path first, in case the part doesn't exist.
make path first, in case the part doesn't exist.
This commit is contained in:
parent
5e861eb78f
commit
3bf6a399a5
1 changed files with 4 additions and 2 deletions
|
@ -137,8 +137,10 @@ if [ "$type" = 'sftp' ]; then
|
|||
if [ -z $port ]; then
|
||||
port=22
|
||||
fi
|
||||
sftmpdir="$path/vst.bK76A9SUkt"
|
||||
sftpc "mkdir $sftmpdir" "rmdir $sftmpdir" > /dev/null 2>&1
|
||||
if sftpc "mkdir $path" > /dev/null 2>&1 ; then
|
||||
sftmpdir="$path/vst.bK76A9SUkt"
|
||||
sftpc "mkdir $sftmpdir" "rmdir $sftmpdir" > /dev/null 2>&1
|
||||
fi
|
||||
rc=$?
|
||||
if [[ "$rc" != 0 ]]; then
|
||||
case $rc in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue