diff --git a/scripts/install-dev.sh b/scripts/install-dev.sh index 7922de0e..77684f68 100755 --- a/scripts/install-dev.sh +++ b/scripts/install-dev.sh @@ -274,7 +274,7 @@ install_deno() { echo -e -n "🔍 Searching for the latest released Deno version..." latest_deno_version=$(curl -fs https://api.github.com/repos/denoland/deno/releases/latest | grep '"tag_name":' | cut -d '"' -f 4) - if [ $? -eq 0 ] && [ "$latest_deno_version" -ne "" ]; then + if [ $? -eq 0 ] && [ -n "$latest_deno_version" ]; then delay 0.2 " Found: ${latest_deno_version}" else delay 0.2 " Found: Unknown" diff --git a/scripts/install.sh b/scripts/install.sh index c23d33e7..a5cd27d5 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -273,7 +273,7 @@ install_deno() { echo -e -n "🔍 Searching for the latest released Deno version..." latest_deno_version=$(curl -fs https://api.github.com/repos/denoland/deno/releases/latest | grep '"tag_name":' | cut -d '"' -f 4) - if [ $? -eq 0 ] && [ "$latest_deno_version" -ne "" ]; then + if [ $? -eq 0 ] && [ -n "$latest_deno_version" ]; then delay 0.2 " Found: ${latest_deno_version}" else delay 0.2 " Found: Unknown"