chore: improve robustness and consistency across multiple scripts
Some checks failed
testing main branch / default-user-name-password (push) Failing after 32s
testing main branch / check-ssh-key (push) Failing after 31s
testing main branch / support-key-passphrase (push) Failing after 32s
testing main branch / multiple-server (push) Failing after 31s
testing main branch / support-ed25519-key (push) Failing after 31s
testing main branch / testing-with-env (push) Failing after 31s
testing main branch / testing ipv6 (push) Failing after 31s
testing main branch / some special character (push) Failing after 31s
testing main branch / testing-capturing-output (push) Failing after 31s
testing main branch / testing-script-stop (push) Failing after 1m32s
testing main branch / testing-script-error (push) Failing after 26s
testing stable version / default-user-name-password (push) Failing after 1m31s
testing stable version / check-ssh-key (push) Failing after 24s
testing stable version / support-key-passphrase (push) Failing after 8s
testing stable version / multiple-server (push) Failing after 5s
testing stable version / support-ed25519-key (push) Failing after 6s
testing stable version / testing-with-env (push) Failing after 11s

- Combine `errexit`, `nounset`, and `pipefail` options into a single `set -euo pipefail` command

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2025-04-10 16:56:18 +08:00
parent bd83ba7e2b
commit 0e19dd962d
No known key found for this signature in database

View File

@ -1,8 +1,6 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
set -euo pipefail
export GITHUB="true"