|| true for euo pipefail

This commit is contained in:
Rodger Castle 2026-05-04 14:35:49 -04:00
parent 522b2608c1
commit 57f4c0c24f

View File

@ -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