Skip to content

Commit

Permalink
Remove trailing slash from the name of the file to send, if any
Browse files Browse the repository at this point in the history
  • Loading branch information
Zi1mo5zo committed Nov 22, 2018
1 parent 9e74012 commit 9b88e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipfs-wormhole.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ send)
GPGCMD="$(checkdep gpg)"
IPFSCMD="$(checkdep ipfs)"
PASSWORD=$($PWGENCMD -1 20)
FILE=${2:-}
USERINPUT=${2:-}
FILE=${USERINPUT%/}
if ! pgrep ipfs 1>/dev/null 2>&1; then
echo "IPFS is not running, starting the daemon and sleep 5 seconds"
$IPFSCMD daemon &
Expand Down

0 comments on commit 9b88e0d

Please sign in to comment.