From e7a3b30564d5e9904f38c2e5ad5e67ab805533d3 Mon Sep 17 00:00:00 2001 From: Termuellinator Date: Mon, 20 Jun 2022 14:44:42 +0200 Subject: [PATCH] check if zstd is installed --- lug-helper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index 01c752d..8ae4a8e 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -65,6 +65,12 @@ if [ ! -x "$(command -v curl)" ]; then notify-send "lug-helper" "The required package 'curl' was not found on this system.\n" --icon=dialog-warning exit 1 fi +if [ ! -x "$(command -v zstd)" ]; then +# Print to stderr and also try warning the user through notify-send + printf "lug-helper.sh: The package 'zstd' was not found on this system. You won't be able to install Runners from TKG.\n" 1>&2 + notify-send "lug-helper" "The package 'zstd' was not found on this system. You won't be able to install Runners from TKG.\n" --icon=dialog-warning + exit 1 +fi if [ ! -x "$(command -v mktemp)" ] || [ ! -x "$(command -v sort)" ] || [ ! -x "$(command -v basename)" ] || [ ! -x "$(command -v realpath)" ] || [ ! -x "$(command -v dirname)" ]; 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 coreutils packages are installed:\n- mktemp\n- sort\n- basename\n- realpath\n- dirname\n" 1>&2