mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-01-31 00:34:24 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
26ce86d10e
commit
dbd4e5d376
@ -39,12 +39,10 @@ __get_file() {
|
||||
if [ "$(uname -m)" = "amd64" ] || [ "$(uname -m)" = "x86_64" ]; then
|
||||
ARCH=x86_64
|
||||
FILE="/tmp/deno-$ARCH.zip"
|
||||
LATEST_URL="$DENO_URL_x64_LATEST"
|
||||
URL="$DENO_URL_x64_VERSION"
|
||||
if [ "$DENO_VERSION" = "latest" ] || [ -z "$DENO_VERSION" ]; then
|
||||
DENO_VERSION="latest"
|
||||
URL="$DENO_URL_x64_LATEST"
|
||||
else
|
||||
URL="$DENO_URL_x64_VERSION"
|
||||
fi
|
||||
echo "grabbing ${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip from denoland for $ARCH"
|
||||
__get_file && if [ -f "/tmp/deno-$ARCH.zip" ]; then
|
||||
@ -63,12 +61,10 @@ if [ "$(uname -m)" = "amd64" ] || [ "$(uname -m)" = "x86_64" ]; then
|
||||
if [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; then
|
||||
ARCH=arm64
|
||||
FILE="/tmp/deno-$ARCH.zip"
|
||||
LATEST_URL="$DENO_URL_ARM64_LATEST"
|
||||
URL="$DENO_URL_ARM64_VERSION"
|
||||
if [ "$DENO_VERSION" = "latest" ] || [ -z "$DENO_VERSION" ]; then
|
||||
DENO_VERSION="latest"
|
||||
URL="$DENO_URL_ARM64_LATEST"
|
||||
else
|
||||
URL="$DENO_URL_ARM64_VERSION"
|
||||
fi
|
||||
echo "grabbing ${DENO_VERSION}/deno-linux-arm64.zip from LukeChannings for $ARCH"
|
||||
__get_file && if [ -f "/tmp/deno-$ARCH.zip" ]; then
|
||||
@ -83,4 +79,3 @@ if [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; then
|
||||
exit 2
|
||||
fi
|
||||
[ -f "$(which "deno")" ] && deno upgrade && exit 0 || exit 10
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user