From 1317aabeb1329512c91a864e06a3742dcd2706e6 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 12 Jun 2022 21:35:42 +0200 Subject: [PATCH] Fix return closes --- quick-installer.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quick-installer.sh b/quick-installer.sh index f427a2d..5dbadcb 100755 --- a/quick-installer.sh +++ b/quick-installer.sh @@ -10,17 +10,17 @@ install_sudo() { echo ">>> Installing sudo package..." >&2 apt install sudo -qq - return 0 + echo 0 fi echo ">>> No supported package manager detected, exciting..." >&2 - return 1 + echo 1 } check_privilege() { if ! [ $(id -u) = 0 ]; then echo ">>> Please run as root" >&2 - return 1 + echo 1 fi } @@ -29,10 +29,10 @@ check_sudo_installation() { if ! [ $? = 0 ]; then echo ">>> Sudo package missing..." >&2 - return $(install_sudo) + echo $(install_sudo) fi - return 0 + echo 0 } create_default_user() {