We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa0eca0 commit 4e28ed6Copy full SHA for 4e28ed6
dvm.sh
@@ -73,7 +73,7 @@ download_file() {
73
exit 1
74
fi
75
76
- if ! ${cmd}
+ if $cmd
77
then
78
local file_type
79
file_type=$(file "$DVM_DIR/download/$version/deno-downloading.$DVM_TARGET_TYPE")
@@ -86,8 +86,12 @@ download_file() {
86
87
88
89
- rm "$DVM_DIR/download/$version/deno-downloading.$DVM_TARGET_TYPE"
90
- echo "Failed to download."
+ if [ -f "$DVM_DIR/download/$version/deno-downloading.$DVM_TARGET_TYPE" ]
+ then
91
+ rm "$DVM_DIR/download/$version/deno-downloading.$DVM_TARGET_TYPE"
92
+ fi
93
+
94
+ echo "Failed to download deno $version."
95
96
}
97
0 commit comments