Skip to content

Commit

Permalink
contrip/upload: do not fail sftp if directory already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdsa committed Dec 19, 2021
1 parent 7354fee commit 195b470
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/upload
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ else
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" << !
cd electrum-downloads-airlock
mkdir "$version"
-mkdir "$version"
cd "$version"
mput *
bye
Expand Down

0 comments on commit 195b470

Please sign in to comment.