Skip to content

Commit

Permalink
Set failure if failed to getting package data.
Browse files Browse the repository at this point in the history
Signed-off-by: ghosind <[email protected]>
  • Loading branch information
ghosind committed Oct 2, 2024
1 parent 79d7820 commit ab02055
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,7 @@ export DVM_VERSION="v0.8.3"

if ! dvm_install_deno "$version"
then
dvm_failure
return
fi

Expand All @@ -1202,12 +1203,14 @@ export DVM_VERSION="v0.8.3"
"binary")
if ! dvm_install_deno_by_binary "$version"
then
dvm_failure
return
fi
;;
"source")
if ! dvm_install_deno_by_source "$version"
then
dvm_failure
return
fi
;;
Expand All @@ -1228,6 +1231,7 @@ export DVM_VERSION="v0.8.3"

if ! dvm_get_package_data "$version"
then
dvm_failure
return
fi

Expand All @@ -1236,6 +1240,7 @@ export DVM_VERSION="v0.8.3"
dvm_print "Downloading and installing deno $version..."
if ! dvm_download_deno "$version"
then
dvm_failure
return
fi
else
Expand Down

0 comments on commit ab02055

Please sign in to comment.