From 046c90c6fa05e5250959f11676300df9f99eb9c4 Mon Sep 17 00:00:00 2001 From: lilyLuLiu Date: Mon, 11 Nov 2024 14:36:05 +0800 Subject: [PATCH] fix crc-support run.sh script extra popd --- crc-support/oci/lib/unix/run.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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