We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba4494 commit bae2f6cCopy full SHA for bae2f6c
install.sh
100644
100755
@@ -1,5 +1,13 @@
1
#!/usr/bin/env bash
2
# Copyright Contributors to the Open Cluster Management project
3
+#
4
+# Usage: ./install.sh [version]
5
6
+# If no version is provided, the latest version will be installed.
7
+# If a version is provided, it will be installed.
8
9
+# Example: ./install.sh v0.1.0
10
+# Example: ./install.sh latest
11
12
# Clusteradm CLI location
13
: "${INSTALL_DIR:=/usr/local/bin}"
@@ -186,7 +194,11 @@ checkHttpRequestCLI
186
194
if [ -z "$1" ]; then
187
195
TARGET_VERSION="latest"
188
196
else
189
- TARGET_VERSION=v$1
197
+ if [[ "$1" =~ ^v.* ]]; then
198
+ TARGET_VERSION="$1"
199
+ else
200
+ TARGET_VERSION="v$1"
201
+ fi
190
202
fi
191
203
192
204
verifySupported
0 commit comments