diff --git a/crc-support/oci/lib/unix/run.sh b/crc-support/oci/lib/unix/run.sh index 887ea32..c2a7029 100755 --- a/crc-support/oci/lib/unix/run.sh +++ b/crc-support/oci/lib/unix/run.sh @@ -102,12 +102,12 @@ if [[ $download == "true" ]]; then dURL="$aBaseURL/$aName" download $dURL check_download $aName $aSHAName - if [[ ${?} -ne 0 ]]; then - popd + if [[ ${?} -ne 0 ]]; then echo "Error with downloading $aName" exit 1 fi fi + popd fi # INSTALLATION @@ -115,5 +115,3 @@ if [[ $install == 'true' ]]; then echo "installing crc" installCRC $aName fi - -popd \ No newline at end of file