Skip to content

Commit f48db79

Browse files
author
Samuel Vandamme
committed
Removed python dependency
1 parent 6ccaf36 commit f48db79

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env bash
2+
3+
# COSCALE_APPID=00248f3b-294f-4adc-94eb-33c72b1d0a95 COSCALE_TOKEN=b7672983-078d-4f3d-b8c5-731f76b0786c bash -c "$(curl -L https://raw.githubusercontent.com/CoScale/coscale-cli/feature/install-script/install.sh)"
4+
25
set -u
36
set -e
47

@@ -18,7 +21,7 @@ fi
1821

1922
# Fetch latest release list from Github
2023
echo "Getting latest release information"
21-
github_data=`curl -s -L https://api.github.com/repos/CoScale/coscale-cli/releases/latest | python -c 'import json,sys;obj=json.load(sys.stdin); releases = [release["browser_download_url"] for release in obj["assets"]]; print "\n".join(releases)'`
24+
github_data=`curl -s -L https://api.github.com/repos/CoScale/coscale-cli/releases/latest | grep "browser_download_url" | awk '{ print $2; }' | sed 's/"//g'`
2225

2326
# Detect operation system
2427
echo "Detecting operation system"
@@ -51,5 +54,5 @@ echo "Testing configuration"
5154
coscale-cli event list
5255

5356
# Done
54-
echo "Done, you can now start using the CoScale CLI tool"
57+
echo "Done, you can now start using the CoScale CLI tool."
5558
popd

0 commit comments

Comments
 (0)