diff options
| author | Coelacanthus <[email protected]> | 2021-10-25 18:22:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-25 18:22:20 +0800 |
| commit | c7ac4208afc9f4c0c7e100d627fef7d47d0b885b (patch) | |
| tree | 25b179225c1aa6eeea2a9067c20ceff392ec4867 /deploy.sh | |
| parent | 9c42d75e17ea62786581376ff627036fd63311ef (diff) | |
refactor(script): add fast-fail and clean-up (#5)
Signed-off-by: Coelacanthus <[email protected]>
Diffstat (limited to 'deploy.sh')
| -rwxr-xr-x | deploy.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,4 +1,8 @@ #!/bin/bash + +# end up when failed +set -Eeuo pipefail + if [ $# -eq 0 ]; then echo 'Should provide least one argument' exit 1 |
