Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3033cf6

Browse files
committed
Fix install script
1 parent4920a55 commit3033cf6

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

‎doc/static/install‎

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CLI_NAME="Automate"
66
CLI_EXECUTABLE="automate"
77
CLI_CONFIG_DIR=".automate"
88
CLI_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~"
1010
CLI_BINARY_TMP_NAME="$CLI_EXECUTABLE-"$(date +"%s")
1111

1212
main() {
@@ -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"
5251
exit 1
5352
fi
54-
55-
# Gzip
56-
ifcommand -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

6455
platform_check() {
@@ -94,7 +85,7 @@ platform_check() {
9485
esac
9586
output" [*] Your architecture (${arch}) is supported""success"
9687

97-
platform="${os}_${arch}"
88+
platform="${os}-${arch}"
9889
}
9990

10091
last_release_version() {
@@ -124,10 +115,10 @@ download_binary() {
124115
output" Downloading binary...""""";
125116
case${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
;;
132123
esac
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-
148133
executable_binary() {
149134
output" Making the binary executable..."""""
150135
chmod 755"/tmp/${CLI_BINARY_TMP_NAME}"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp