From d6d96e487f94316ce8dd90a21d304a962274a2a7 Mon Sep 17 00:00:00 2001 From: Micheal Quinn Date: Thu, 15 Aug 2019 20:48:46 -0500 Subject: [PATCH] fixing returncode for download_file --- src/install/rewrite.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/install/rewrite.txt b/src/install/rewrite.txt index 6189207..21fd73a 100644 --- a/src/install/rewrite.txt +++ b/src/install/rewrite.txt @@ -393,6 +393,7 @@ install_file_linux() { # NAME: install_file_cygwin # DESCRIPTION: Installs a file into a location using 'install'. If EUID not # 0, then attempt to use sudo. +# Not really 100% sure this is how to install croc in cygwin. # PARAMETERS: $1 = file to install # $2 = location to install file into # RETURNS: 0 = File Installed @@ -525,7 +526,7 @@ main() { elif [[ "${download_file_rcode}" == "1" ]]; then print_message "== Failed to download croc archive" "error" exit 1 - elif [[ "${download_file_rcode}" == "2" ]]; then + elif [[ "${download_file_rcode}" == "20" ]]; then print_message "== Failed to locate curl or wget" "error" exit 1 else