From ee5da5d348e8f1ce5ba16d9e36d933830db4f47c Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 16 Jan 2021 09:07:01 -0500 Subject: [PATCH] Add notify-send for dependency errors --- lug-helper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index 1fcee2e..5830cfb 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -41,7 +41,9 @@ # Check for dependencies if [ ! -x "$(command -v mktemp)" ] || [ ! -x "$(command -v basename)" ]; then + # Print to stderr and also try warning the user through notify-send printf "lug-helper.sh: One or more required packages were not found on this system.\nPlease check that the following packages are installed:\n- mktemp (part of gnu coreutils)\n- basename (part of gnu coreutils)\n" 1>&2 + notify-send "lug-helper" "One or more required packages were not found on this system.\nPlease check that the following packages are installed:\n- mktemp (part of gnu coreutils)\n- basename (part of gnu coreutils)\n" --icon=dialog-warning exit 1 fi