Skip to content

Commit 20980a8

Browse files
authored
fix for proper return exit code in failure (#2739)
1 parent 9715632 commit 20980a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OracleDatabase/RAC/OracleRealApplicationClusters/dockerfiles/buildContainerImage.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ checksumPackages() {
3636
echo "Checking if required packages are present and valid..."
3737
md5sum -c Checksum
3838
# shellcheck disable=SC2181
39-
if [ "$?" -ne 0 ]; then
39+
status=$?
40+
if [ "$status" -ne 0 ]; then
4041
echo "MD5 for required packages to build this image did not match!"
4142
echo "Make sure to download missing files in folder $VERSION."
4243
# shellcheck disable=SC2320
43-
exit $?
44+
exit "$status"
4445
fi
4546
else
4647
echo "Ignored MD5 sum, 'md5sum' command not available.";

0 commit comments

Comments
 (0)