From 0590dc0b63dc9f0f8d6ec5cd5649ab9ef37e28e6 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Sun, 26 Apr 2020 02:41:44 -0500 Subject: [PATCH] Changed default behavior to skip update. --- lib/installer/InstallerUtils.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/installer/InstallerUtils.sh b/lib/installer/InstallerUtils.sh index 298bd79..6e39975 100755 --- a/lib/installer/InstallerUtils.sh +++ b/lib/installer/InstallerUtils.sh @@ -115,7 +115,7 @@ installer_utils_run_update() { local __installer_utils_run_update__backup="$2" local __installer_utils_run_update__output="$3" - format_center_literals "Press$CYel Y$CClr /$CYel enter$CClr to update, anything else to skip." + format_center_literals "$CYel Y$CClr /$CYel y$CClr +$CGrn $CClr to update,$CGrn $CClr to skip" echo -e "$FormatCenterLiterals" tput civis @@ -125,8 +125,8 @@ installer_utils_run_update() { # If the user doesn't want to upgrade, stop this procedure. if [ \ - "${__installer_utils_run_update__option-}" != $'\n' -a \ - "${__installer_utils_run_update__option^}" != "Y" ]; then + "${__installer_utils_run_update__option-}" != 'y' -a \ + "${__installer_utils_run_update__option^}" != 'Y' ]; then return 1 fi @@ -201,6 +201,8 @@ installer_utils_run_update() { echo -e "$FormatCenterLiterals" echo sleep 5 + + return 0 } # Parameters: $1 - CLI Tools required array $2 - CLI Tools missing array (will be populated)