summaryrefslogtreecommitdiff
path: root/dep.sh
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-09-09 20:21:34 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-09-09 20:21:34 +0400
commitcb73aaecf185a97ffe2da84a2a0be7b61dff8bae (patch)
tree5a6de5d97bb96f5ce63dfa9fac646828f0e49abd /dep.sh
parent96a5d8db877b5b501c0d2e9f3dc5ee5c63fbd001 (diff)
dep.sh: not return failure
Diffstat (limited to 'dep.sh')
-rwxr-xr-xdep.sh11
1 files 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."