Skip to content

Commit

Permalink
fix crc-support run.sh script extra popd
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed Nov 12, 2024
1 parent 2263957 commit fc02325
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crc-support/oci/lib/unix/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ fi
if [[ $freshEnv == 'true' ]]; then
echo "removing previous crc"
force_fresh_environment
fi
fi

mkdir -p $targetPath
pushd $targetPath

# DOWNLOAD
if [[ $download == "true" ]]; then
echo "downlading $aName"
mkdir -p $targetPath
pushd $targetPath

# Download sha256sum
curl --insecure -LO "$aBaseURL/$aSHAName"
# Check if require download
Expand All @@ -102,8 +104,7 @@ 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
Expand Down

0 comments on commit fc02325

Please sign in to comment.