mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -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
|
if [ -z $port ]; then
|
||||||
port=22
|
port=22
|
||||||
fi
|
fi
|
||||||
sftmpdir="$path/vst.bK76A9SUkt"
|
if sftpc "mkdir $path" > /dev/null 2>&1 ; then
|
||||||
sftpc "mkdir $sftmpdir" "rmdir $sftmpdir" > /dev/null 2>&1
|
sftmpdir="$path/vst.bK76A9SUkt"
|
||||||
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue