From 0f9b99fb47a12f90b11601ca4a87b82a8ea58232 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Tue, 11 Oct 2022 13:46:20 +0200 Subject: [PATCH] check dependencies when running the script --- bin/surf-display | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/bin/surf-display b/bin/surf-display index dbc6fb5..b116060 100755 --- a/bin/surf-display +++ b/bin/surf-display @@ -24,19 +24,15 @@ # Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. -# dependencies: -# surf -# wmctrl -# matchbox-window-manager -# pulseaudio-utils -# xprintidle -# xdotool -# xmodmap -# x11-xkb-utils -# -# recommendations: -# unclutter -# x11-xserver-utils +for i in surf wmctrl blackbox xdotool xmodmap unclutter +do + if ! type $i + then + echo "$i is missing" + exit 1 + fi +done + VERSION="0.1.0"