more general message on zstd dependency check

This commit is contained in:
Termuellinator 2022-06-23 10:01:59 +02:00
parent ba907c44bf
commit 747c799a8b

View File

@ -67,8 +67,8 @@ if [ ! -x "$(command -v curl)" ]; then
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
printf "lug-helper.sh: The package 'zstd' was not found on this system. It is required for extracting some runner packages.\n" 1>&2
notify-send "lug-helper" "The package 'zstd' was not found on this system. It is required for extracting some runner packages.\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