From bc5bef480d6b931335de135b365a8f71a3e1bac9 Mon Sep 17 00:00:00 2001 From: bastimeyer Date: Mon, 6 Dec 2021 17:28:06 +0100 Subject: [PATCH] fix: error message for missing dependencies --- dayz-launcher.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dayz-launcher.sh b/dayz-launcher.sh index 364b257..b7c062f 100755 --- a/dayz-launcher.sh +++ b/dayz-launcher.sh @@ -29,10 +29,10 @@ INPUT=() MODS=() declare -A DEPS=( - [gawk]=gawk - [curl]=curl - [jq]=jq - [steam]=steam + [gawk]="required for parsing the mod metadata" + [curl]="required for querying the server API" + [jq]="required for parsing the server API's JSON response" + [steam]="required for launching the game" ) @@ -145,7 +145,7 @@ check_dir() { check_deps() { for dep in "${!DEPS[@]}"; do - command -v "${dep}" 2>&1 >/dev/null || err "${DEPS["${dep}"]} is missing. Aborting." + command -v "${dep}" 2>&1 >/dev/null || err "'${dep}' is missing (${DEPS["${dep}"]}). Aborting." done }