From a3c620b901462c6233a2b72ffde3c6b9a4d896c7 Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 24 Aug 2026 16:35:00 +0400 Subject: [PATCH] return instead of exit --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 0bd6120..4bd5bd3 100755 --- a/install.sh +++ b/install.sh @@ -37,7 +37,7 @@ function assert_supported_distro { distro=$(grep -oP '^ID=\K(.*)' /etc/os-release) >&2 echo "unsupported GNU/Linux distribution: $distro" >&2 echo 'only debian-like OR arch-like currently supported' - return + return 10 fi } @@ -54,14 +54,14 @@ function execute_miaou_lib { function assert_bash { if [[ $SHELL != bash ]]; then >&2 echo "you are running on SHELL=$SHELL. Bash expected!" - return + return 11 fi } function sudo_root { if [[ "$UID" -ne 0 ]] && ! sudo -vp 'SUDO privilege required: '; then >&2 echo "canceled" - return + return 12 fi } ## MAIN