@@ -19,32 +19,32 @@ if [ -z ${COSCALE_APPID+x} ] || [ -z ${COSCALE_TOKEN+x} ]; then
1919 # Check command arguments
2020 if [ -z ${COSCALE_APPID+x} ]; then
2121 echo " Please enter your app id:"
22- read -e COSCALE_APPID
22+ read -e -r COSCALE_APPID
2323 fi
2424 echo
2525
2626 if [ -z ${COSCALE_TOKEN+x} ]; then
2727 echo " Please enter your access token:"
28- read -e COSCALE_TOKEN
28+ read -e -r COSCALE_TOKEN
2929 fi
3030 echo
3131fi
3232
3333# Detect operation system
3434echo " ### Detecting operating system"
3535echo
36- os=` uname -o | awk ' {split($0,a,"/"); print tolower(a[2])}' `
36+ os=$( uname -o | awk ' {split($0,a,"/"); print tolower(a[2])}' )
3737echo " Operation system: $os "
3838echo
3939
4040# Fetch latest release list from Github
4141echo
4242echo " ## Getting latest release information"
4343echo
44- 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' `
44+ 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' )
4545
4646# Select correct release
47- release=` echo " $github_data " | grep $os `
47+ release=` echo " $github_data " | grep " $os " `
4848echo " ### Latest release: $release "
4949
5050# Start install
6767
6868# Create symlink from /usr/bin/coscale-cli to /opt/coscale/cli/coscale-cli
6969echo " ### Creating symlink"
70- ln -v -S /usr/bin/coscale-cli /opt/coscale/cli/coscale-cli
70+ ln -v -s /usr/bin/coscale-cli /opt/coscale/cli/coscale-cli
7171echo
7272
7373# Create config
0 commit comments