Browse Source

contrip/upload: do not fail sftp if directory already exists

patch-4
ThomasV 3 years ago
parent
commit
195b470d70
  1. 5
      contrib/upload

5
contrib/upload

@ -25,9 +25,12 @@ else
fi fi
# do not fail sftp if directory exists
# see https://stackoverflow.com/questions/51437924/bash-shell-sftp-check-if-directory-exists-before-creating
sftp -oBatchMode=no -b - "$SSHUSER@uploadserver" << ! sftp -oBatchMode=no -b - "$SSHUSER@uploadserver" << !
cd electrum-downloads-airlock cd electrum-downloads-airlock
mkdir "$version" -mkdir "$version"
cd "$version" cd "$version"
mput * mput *
bye bye

Loading…
Cancel
Save