|| true for euo pipefail
This commit is contained in:
1 parent
522b2608c1
commit
57f4c0c24f
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user