summaryrefslogtreecommitdiff
path: root/download-latest.sh
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-01-13 14:03:45 +0100
committerValery Piashchynski <[email protected]>2023-01-13 14:03:45 +0100
commitf8d6b01ad00240c1810982ce217b106821a5907f (patch)
tree0686ea53c477d1976ff88d7dfb08d842d40cd302 /download-latest.sh
parent50c92631e22934f38d0349d5de0287d348559009 (diff)
correct ArchLinux detection
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'download-latest.sh')
-rw-r--r--download-latest.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/download-latest.sh b/download-latest.sh
index 14621dbd..37097920 100644
--- a/download-latest.sh
+++ b/download-latest.sh
@@ -56,7 +56,7 @@ isAlpine() {
get_os() {
if isAlpine; then
os="unknown-musl"
- return 1
+ return 0
fi
os_name=$(uname -s)
@@ -103,7 +103,7 @@ get_archi() {
get_compress() {
if isAlpine; then
compress="zip"
- return 1
+ return 0
fi
os_name=$(uname -s)
@@ -181,9 +181,4 @@ download_binary() {
printf "$GREEN%s\n$DEFAULT" "RoadRunner $latest archive successfully downloaded as $release_file"
}
-# MAIN
-
-main() {
- download_binary
-}
-main
+download_binary