Skip to content

Commit 16cd543

Browse files
committed
review change
1 parent 9617423 commit 16cd543

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

modules/kube-audit/scripts/install-binaries.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ RETURN_CODE_ERROR=1
1111
echo "Downloading common-bash-library version ${TAG}."
1212

1313
# download common-bash-library
14-
set +e
15-
if ! curl --silent \
14+
curl --silent \
1615
--connect-timeout 5 \
1716
--max-time 10 \
1817
--retry 3 \
@@ -22,11 +21,7 @@ if ! curl --silent \
2221
--show-error \
2322
--location \
2423
--output "${DIRECTORY}/common-bash.tar.gz" \
25-
"https://github.com/terraform-ibm-modules/common-bash-library/archive/refs/tags/$TAG.tar.gz"; then
26-
echo "Failed to download common-bash-library"
27-
return ${RETURN_CODE_ERROR}
28-
fi
29-
set -e
24+
"https://github.com/terraform-ibm-modules/common-bash-library/archive/refs/tags/$TAG.tar.gz"
3025

3126
mkdir -p "common-bash-library"
3227
tar -xzf "${DIRECTORY}/common-bash.tar.gz" --strip-components=1 -C "common-bash-library"

scripts/install-binaries.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ RETURN_CODE_ERROR=1
1111
echo "Downloading common-bash-library version ${TAG}."
1212

1313
# download common-bash-library
14-
set +e
15-
if ! curl --silent \
14+
curl --silent \
1615
--connect-timeout 5 \
1716
--max-time 10 \
1817
--retry 3 \
@@ -22,11 +21,7 @@ if ! curl --silent \
2221
--show-error \
2322
--location \
2423
--output "${DIRECTORY}/common-bash.tar.gz" \
25-
"https://github.com/terraform-ibm-modules/common-bash-library/archive/refs/tags/$TAG.tar.gz"; then
26-
echo "Failed to download common-bash-library"
27-
return ${RETURN_CODE_ERROR}
28-
fi
29-
set -e
24+
"https://github.com/terraform-ibm-modules/common-bash-library/archive/refs/tags/$TAG.tar.gz"
3025

3126
mkdir -p "common-bash-library"
3227
tar -xzf "${DIRECTORY}/common-bash.tar.gz" --strip-components=1 -C "common-bash-library"

0 commit comments

Comments
 (0)