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 7d4d14f commit ea8a9cbCopy full SHA for ea8a9cb
install.sh
@@ -55,7 +55,7 @@ function download_and_install() {
55
# Use temp dir for download
56
TARGET="${TMPDIR}/${CLIENT_BINARY}"
57
58
- curl -# -fSL --retry 5 --keepalive-time 2 ${INSECURE_ARG} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}"
+ curl -# -fSL --retry 5 --keepalive-time 2 ${INSECURE_ARG} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}" || log_error "Failed to download ${CLIENT_BINARY}" 6
59
chmod +x "${TARGET}" || log_error "Failed to set executable permission on: ${TARGET}" 7
60
# Move the binary to install dir and rename to gorush
61
mv "${TARGET}" "${INSTALL_DIR}/gorush" || log_error "Failed to move ${TARGET} to ${INSTALL_DIR}/gorush" 8
0 commit comments