Skip to content

Commit 07c5fce

Browse files
committed
have shellcheck exclusions followed by rationale
1 parent ba61bf2 commit 07c5fce

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/create_builder.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ check_proxy_config() {
2525

2626
# Check if builder exists and has correct proxy configuration
2727
if docker buildx inspect multiarch &>/dev/null; then
28-
# it is an optional rule, enabled via --enable all
2928
# shellcheck disable=SC2310
29+
# it is an optional rule, enabled via --enable all
3030
if ! check_proxy_config; then
3131
echo "Builder 'multiarch' exists but has incorrect proxy configuration. Recreating..."
3232
docker buildx rm multiarch

src/s-core-devcontainer/.devcontainer/bazel-feature/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ COPY_TARGET="${FEATURES_DIR}/$(basename "${SCRIPT_DIR%%_*}")"
1010
cp -R "${SCRIPT_DIR}" "${COPY_TARGET}"
1111
rm -f "${COPY_TARGET}/devcontainer-features.env" "${COPY_TARGET}/devcontainer-features-install.sh"
1212

13-
# used by apt-get only inside this script
1413
# shellcheck disable=SC2034
14+
# used by apt-get only inside this script
1515
DEBIAN_FRONTEND=noninteractive
1616

1717
# Read tool versions + metadata into environment variables

src/s-core-devcontainer/.devcontainer/bazel-feature/install_matching_bazel_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ if [ -f .bazelversion ] && [ "$(cat .bazelversion)" != "${INSTALLED_BAZEL_VERSIO
1313
bash="bash"
1414
fi
1515

16-
# $bash might be empty and then an empty string is passed to the command, which will fail
1716
# shellcheck disable=SC2248
17+
# without quotes is intentional: $bash might be empty and then an empty string is passed to the command, which will fail
1818
bazel help completion ${bash} > /tmp/bazel-complete.bash
1919
sudo mv /tmp/bazel-complete.bash /etc/bash_completion.d/bazel-complete.bash
2020
echo "INSTALLED_BAZEL_VERSION=${USE_BAZEL_VERSION}" | sudo tee /devcontainer/features/bazel/bazel_setup.sh

src/s-core-devcontainer/.devcontainer/s-core-local/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ COPY_TARGET="${FEATURES_DIR}/$(basename "${SCRIPT_DIR%%_*}")"
1010
cp -R "${SCRIPT_DIR}" "${COPY_TARGET}"
1111
rm -f "${COPY_TARGET}/devcontainer-features.env" "${COPY_TARGET}/devcontainer-features-install.sh"
1212

13-
# used by apt-get only inside this script
1413
# shellcheck disable=SC2034
14+
# used by apt-get only inside this script
1515
DEBIAN_FRONTEND=noninteractive
1616

1717
# Read tool versions + metadata into environment variables

0 commit comments

Comments
 (0)