Skip to content

Commit

Permalink
Set errtrace in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 30, 2023
1 parent d2ffa16 commit 7d0442a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ jobs:
steps:
- name: Install requirements (ubuntu/debian)
run: |
set -euxo pipefail
set -eEuxo pipefail
apt-get -o Acquire::Retries=10 -qq update
apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends cargo
if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'debian')
- name: Install requirements (fedora/almalinux/centos)
run: |
set -euxo pipefail
set -eEuxo pipefail
if ! type -P dnf &>/dev/null && type -P microdnf &>/dev/null; then
# tar and gzip are required for actions/checkout on *-minimal images
microdnf install -y tar gzip
Expand All @@ -133,9 +133,7 @@ jobs:
echo "$HOME/.cargo/bin" >>"${GITHUB_PATH}"
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux') || startsWith(matrix.container, 'centos')
- name: Install requirements (alpine)
run: |
set -eux
apk --no-cache add bash cargo
run: apk --no-cache add bash cargo
shell: sh
if: startsWith(matrix.container, 'alpine')
- uses: actions/checkout@v3 # TODO: actions/checkout@v4 requires glibc 2.28+
Expand Down
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0 OR MIT
set -euo pipefail
set -eEuo pipefail
IFS=$'\n\t'

rx() {
Expand Down
2 changes: 1 addition & 1 deletion tools/ci/manifest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0 OR MIT
set -euo pipefail
set -eEuo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/../..

Expand Down
2 changes: 1 addition & 1 deletion tools/ci/tool-list.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0 OR MIT
set -euo pipefail
set -eEuo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/../..

Expand Down
2 changes: 1 addition & 1 deletion tools/manifest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0 OR MIT
set -euo pipefail
set -eEuo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/..

Expand Down
2 changes: 1 addition & 1 deletion tools/publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0 OR MIT
set -euo pipefail
set -eEuo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/..

Expand Down
2 changes: 1 addition & 1 deletion tools/tidy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0 OR MIT
# shellcheck disable=SC2046
set -euo pipefail
set -eEuo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/..

Expand Down

0 comments on commit 7d0442a

Please sign in to comment.