Fix shellcheck issues in quickinstall

This commit is contained in:
AFCMS
2023-10-24 15:36:07 +02:00
parent b2188fac7d
commit e17c547088
+2 -2
View File
@@ -9,7 +9,7 @@ if [[ -z "$LC_ALL" && -z "$LANG" ]]; then
else else
# don't let LC_ALL to be set because it always overrides all LC_*, # don't let LC_ALL to be set because it always overrides all LC_*,
# while LANG only sets LC_* once # while LANG only sets LC_* once
if [[ ! -z "$LC_ALL" ]]; then if [[ -n "$LC_ALL" ]]; then
export LC_ALL= export LC_ALL=
fi fi
fi fi
@@ -29,7 +29,7 @@ function checkfail {
if [[ $1 -ne 0 ]]; then if [[ $1 -ne 0 ]]; then
echo "An error occurred," echo "An error occurred,"
echo "press enter to exit." echo "press enter to exit."
read -rs dummy read -rs
exit "$1" exit "$1"
fi fi
} }