From 6c928f9f4698c773b5e0224132d4d7d0231081f7 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 12 Oct 2022 20:19:00 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/get-deno.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/get-deno.sh b/bin/get-deno.sh index 6e4f8ee..d839536 100755 --- a/bin/get-deno.sh +++ b/bin/get-deno.sh @@ -41,9 +41,13 @@ fi echo "grabbing deno $DENO_VERSION from $CHANNEL for $ARCH" if curl -q -LSsf -o "$TMP_FILE" "$URL" && [ -f "$TMP_FILE" ]; then mkdir -p "$TMP_DIR" && cd "$TMP_DIR" || exit 10 - unzip "$TMP_FILE" - cp -Rf "$TMP_DIR/deno" "$BIN_FILE" - chmod -Rf 755 "$BIN_FILE" + unzip -q "$TMP_FILE" + if [ -f "$TMP_DIR/deno" ]; then + cp -Rf "$TMP_DIR/deno" "$BIN_FILE" && chmod -Rf 755 "$BIN_FILE" || exit 10 + else + echo "Failed to extract deno from $TMP_FILE" + exit 10 + fi else echo "Failed to download deno from $URL" exitCode=2