Skip to content

Commit

Permalink
Removed duplicated definition for the default password length, and un…
Browse files Browse the repository at this point in the history
…necessary variable and echo statement
  • Loading branch information
Zi1mo5zo committed Nov 23, 2018
1 parent 83226ad commit d64d739
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ipfs-wormhole.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ function checkdep() {
echo "$CMDPATH"
}

# Generate Passwords, the default length is 40 characters

# Generate Password
function generate_password() {
local TEMPPASSWORD=$(tr </dev/urandom -dc A-Za-z0-9 | head -c${1:-40})
echo "$TEMPPASSWORD"
echo "$(tr </dev/urandom -dc A-Za-z0-9 | head -c $1)"
}

case "${1:-}" in
Expand Down

0 comments on commit d64d739

Please sign in to comment.