Skip to content

Commit 1129877

Browse files
authored
fix: parse the latest deno release in installation script outputs as a tagged version (#91)
1 parent 6ffb164 commit 1129877

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/install-dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ install_deno() {
274274

275275
echo -e -n "🔍 Searching for the latest released Deno version..."
276276
latest_deno_version=$(curl -fs https://api.github.com/repos/denoland/deno/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)
277-
if [ $? -eq 0 ] && [ "$latest_deno_version" -ne "" ]; then
277+
if [ $? -eq 0 ] && [ -n "$latest_deno_version" ]; then
278278
delay 0.2 " Found: ${latest_deno_version}"
279279
else
280280
delay 0.2 " Found: Unknown"

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ install_deno() {
273273

274274
echo -e -n "🔍 Searching for the latest released Deno version..."
275275
latest_deno_version=$(curl -fs https://api.github.com/repos/denoland/deno/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)
276-
if [ $? -eq 0 ] && [ "$latest_deno_version" -ne "" ]; then
276+
if [ $? -eq 0 ] && [ -n "$latest_deno_version" ]; then
277277
delay 0.2 " Found: ${latest_deno_version}"
278278
else
279279
delay 0.2 " Found: Unknown"

0 commit comments

Comments
 (0)