From f8d6b01ad00240c1810982ce217b106821a5907f Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 13 Jan 2023 14:03:45 +0100 Subject: correct ArchLinux detection Signed-off-by: Valery Piashchynski --- download-latest.sh | 11 +++-------- 1 file 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 -- cgit v1.2.3