Skip to content

Commit

Permalink
fix for proper return exit code in failure
Browse files Browse the repository at this point in the history
  • Loading branch information
s1saurabh committed Dec 14, 2023
1 parent 0f68181 commit 6daae0a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ checksumPackages() {
echo "Checking if required packages are present and valid..."
md5sum -c Checksum
# shellcheck disable=SC2181
if [ "$?" -ne 0 ]; then
status=$?
if [ "$status" -ne 0 ]; then
echo "MD5 for required packages to build this image did not match!"
echo "Make sure to download missing files in folder $VERSION."
# shellcheck disable=SC2320
exit $?
exit "$status"
fi
else
echo "Ignored MD5 sum, 'md5sum' command not available.";
Expand Down

0 comments on commit 6daae0a

Please sign in to comment.