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 6c73e5f commit 222e4c8Copy full SHA for 222e4c8
install.sh
@@ -1,7 +1,12 @@
1
#!/bin/bash
2
set -e
3
4
-VERSION="${1:-v0.1.0}"
+VERSION="${1}"
5
+
6
+if [ -z "$VERSION" ]; then
7
+ VERSION=$(curl -s https://api.github.com/repos/dcode-tech/dcli/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
8
+fi
9
10
OS="$(uname | tr '[:upper:]' '[:lower:]')"
11
ARCH="$(uname -m)"
12
0 commit comments