@@ -6,7 +6,7 @@ CLI_NAME="Automate"
66CLI_EXECUTABLE=" automate"
77CLI_CONFIG_DIR=" .automate"
88CLI_REPO_LATEST_RELEASE_URL=" https://api.github.com/repos/automatephp/automate/releases/latest"
9- CLI_DOWNLOAD_URL_PATTERN=" https://github.com/automatephp/automate/releases/download/~latest_version~/automate_ ~platform~.gz "
9+ CLI_DOWNLOAD_URL_PATTERN=" https://github.com/automatephp/automate/releases/download/~latest_version~/automate- ~platform~"
1010CLI_BINARY_TMP_NAME=" $CLI_EXECUTABLE -" $( date +" %s" )
1111
1212main () {
@@ -23,7 +23,6 @@ main() {
2323 output" Download" " heading"
2424 last_release_version
2525 download_binary
26- uncompress_binary
2726 executable_binary
2827 move_binary
2928
@@ -51,14 +50,6 @@ third_party_check() {
5150 output" [ ] ERROR: cURL or wget is required for installation." " error"
5251exit 1
5352fi
54-
55- # Gzip
56- if command -v gzip> /dev/null2>&1 ; then
57- output" [*] Gzip is installed" " success"
58- else
59- output" [ ] ERROR: Gzip is required for installation." " error"
60- exit 1
61- fi
6253}
6354
6455platform_check () {
@@ -94,7 +85,7 @@ platform_check() {
9485esac
9586 output" [*] Your architecture (${arch} ) is supported" " success"
9687
97- platform=" ${os} _ ${arch} "
88+ platform=" ${os} - ${arch} "
9889}
9990
10091last_release_version () {
@@ -124,10 +115,10 @@ download_binary() {
124115 output" Downloading binary..." " " " " ;
125116case ${downloader} in
126117" curl" )
127- curl -sSf --location" ${latest_url} " > " /tmp/${CLI_BINARY_TMP_NAME} .gz "
118+ curl -sSf --location" ${latest_url} " > " /tmp/${CLI_BINARY_TMP_NAME} "
128119 ;;
129120" wget" )
130- wget -q" ${latest_url} " -O" /tmp/${CLI_BINARY_TMP_NAME} .gz "
121+ wget -q" ${latest_url} " -O" /tmp/${CLI_BINARY_TMP_NAME} "
131122 ;;
132123esac
133124
@@ -139,12 +130,6 @@ download_binary() {
139130 output" ok" " success"
140131}
141132
142- uncompress_binary () {
143- output" Uncompress binary..." " " " "
144- gzip -d" /tmp/${CLI_BINARY_TMP_NAME} .gz"
145- output" ok" " success"
146- }
147-
148133executable_binary () {
149134 output" Making the binary executable..." " " " "
150135 chmod 755" /tmp/${CLI_BINARY_TMP_NAME} "