From cb73aaecf185a97ffe2da84a2a0be7b61dff8bae Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Mon, 9 Sep 2024 20:21:34 +0400 Subject: dep.sh: not return failure --- dep.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/dep.sh b/dep.sh index 2ecd2a7..1a1bec2 100755 --- a/dep.sh +++ b/dep.sh @@ -5,7 +5,6 @@ check() for program in "${@}"; do if ! command -v "${program}" > /dev/null 2>&1; then echo "'${program}' is missing." >&2 - retval=1; fi done; } @@ -19,13 +18,9 @@ check_with_msg() { if ! command -v "${1}" > /dev/null 2>&1; then echo "${2}" >&2 - retval=1; fi } - -retval=0 - # Configurated programs check \ git \ @@ -45,7 +40,7 @@ check \ scrot \ brightnessctl -check_with_msg pactl "pulseaudio is missing." +check_with_msg pactl "'pulseaudio' is missing." # X11 dependencies check \ @@ -53,6 +48,4 @@ check \ xset \ xgamma -check_with_msg startx "xorg-xinit is missing." - -return "${retval}" +check_with_msg startx "'xorg-xinit' is missing." -- cgit v1.2.3