mirror of
https://github.com/JonasunderscoreJones/dayz-linux-gui-launcher.git
synced 2025-10-23 00:09:19 +02:00
fix: error message for missing dependencies
This commit is contained in:
parent
1f7f1676be
commit
bc5bef480d
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue