diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-09-09 20:21:34 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-09-09 20:21:34 +0400 |
commit | cb73aaecf185a97ffe2da84a2a0be7b61dff8bae (patch) | |
tree | 5a6de5d97bb96f5ce63dfa9fac646828f0e49abd /dep.sh | |
parent | 96a5d8db877b5b501c0d2e9f3dc5ee5c63fbd001 (diff) |
dep.sh: not return failure
Diffstat (limited to 'dep.sh')
-rwxr-xr-x | dep.sh | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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." |