From 9599f80ff8db795e974eea8405cada1212781557 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 30 Oct 2019 18:36:39 +0400 Subject: [PATCH] Make script stop when needed software is not installed (fixes #1) --- Main/create.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Main/create.sh b/Main/create.sh index 5434253..490da46 100755 --- a/Main/create.sh +++ b/Main/create.sh @@ -1,5 +1,15 @@ #!/bin/bash +if ! [ -x "$(command -v xcursorgen)" ]; then + echo 'Error: xcursorgen is not installed.' >&2 + exit 1 +fi + +if ! [ -x "$(command -v convert)" ]; then + echo 'Error: imagemagick is not installed.' >&2 + exit 1 +fi + source progressBars.sh source buildFunctions.sh