Skip to content

Commit

Permalink
Silently overwrite the existing destination file if its size if 0, e.…
Browse files Browse the repository at this point in the history
…g. resulting from a previous failed attempt.
  • Loading branch information
Zi1mo5zo committed Nov 22, 2018
1 parent 9b88e0d commit 480def4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipfs-wormhole.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ send)
receive)
GPGCMD="$(checkdep gpg)"
DSTFILENAME="$(echo "${2:66}" | base64 -d)"
if [ -f "$DSTFILENAME" ]; then
if [ -s "$DSTFILENAME" ]; then
echo "File $DSTFILENAME already exists, aborting..."
exit 1
fi
Expand Down

0 comments on commit 480def4

Please sign in to comment.