|| true for euo pipefail
This commit is contained in:
parent
522b2608c1
commit
57f4c0c24f
@ -68,7 +68,7 @@ read -rsp " Password [auto]: " SFTP_PASS
|
||||
echo ""
|
||||
|
||||
if [[ -z "$SFTP_PASS" ]]; then
|
||||
SFTP_PASS="$(tr -dc 'A-Za-z0-9!@#%^&*()-_=+' </dev/urandom | head -c 24)"
|
||||
SFTP_PASS="$(tr -dc 'A-Za-z0-9!@#%^&*()-_=+' </dev/urandom | head -c 24 || true)"
|
||||
GENERATED_PASS=true
|
||||
else
|
||||
GENERATED_PASS=false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user