Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Aug 16, 2023
1 parent 53d3733 commit 79dd380
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash
set -ex
#!/bin/sh
set -e

cat <<EOF
----------------------------------------------
echo "Activating feature 'deno'"

YOU ARE AWESOME!
TARGET_DENO_VERSION=${VERSION:-"latest"}

----------------------------------------------
EOF
if [ "${TARGET_DENO_VERSION}" = "latest" ] || "${TARGET_DENO_VERSION}" = "none";
then
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh
else
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh -s "v${TARGET_DENO_VERSION}"
fi

0 comments on commit 79dd380

Please sign in to comment.