From e17c54708898faf97eef688defc7823f0e57329b Mon Sep 17 00:00:00 2001 From: AFCMS Date: Tue, 24 Oct 2023 15:36:07 +0200 Subject: [PATCH] Fix shellcheck issues in quickinstall --- quickinstall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickinstall b/quickinstall index b6959172..bf594afb 100755 --- a/quickinstall +++ b/quickinstall @@ -9,7 +9,7 @@ if [[ -z "$LC_ALL" && -z "$LANG" ]]; then else # don't let LC_ALL to be set because it always overrides all LC_*, # while LANG only sets LC_* once - if [[ ! -z "$LC_ALL" ]]; then + if [[ -n "$LC_ALL" ]]; then export LC_ALL= fi fi @@ -29,7 +29,7 @@ function checkfail { if [[ $1 -ne 0 ]]; then echo "An error occurred," echo "press enter to exit." - read -rs dummy + read -rs exit "$1" fi }