aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-05-11 23:28:45 +0300
committerGitHub <noreply@github.com>2022-05-11 23:28:45 +0300
commite35e92e44cf8dbfb877d1923686d2bf333d95895 (patch)
treecf6ea7c2e49893e0aaf2aabf26b8e7e389a8bf1c
parentccaa08a416778453526e554c32b5e80b77797ba6 (diff)
node: support latest as version option (#5)
-rw-r--r--collection/node/install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/collection/node/install.sh b/collection/node/install.sh
index c355168..0b2190b 100644
--- a/collection/node/install.sh
+++ b/collection/node/install.sh
@@ -98,6 +98,8 @@ if [ "${NODE_VERSION}" = "none" ]; then
export NODE_VERSION=
elif [ "${NODE_VERSION}" = "lts" ]; then
export NODE_VERSION="lts/*"
+elif [ "${NODE_VERSION}" = "latest" ]; then
+ export NODE_VERSION="node"
fi
# Create a symlink to the installed version for use in Dockerfile PATH statements