aboutsummaryrefslogtreecommitdiff
path: root/subprojects/freeamo/src
diff options
context:
space:
mode:
authordavid <public@beloved.name>2018-08-07 18:45:47 +0200
committerdavid <public@beloved.name>2018-08-07 18:45:47 +0200
commit08071bef74544b0e4905d509b94a12e64dd3811b (patch)
tree0f9b4ef624817709ff28c459c60e63fec4fc81c9 /subprojects/freeamo/src
parent4c714a566fa46b51a586c35da2588cb4ec823a2e (diff)
FreeAMO: finalized the tmp variable
Diffstat (limited to 'subprojects/freeamo/src')
-rw-r--r--subprojects/freeamo/src/main_functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/freeamo/src/main_functions b/subprojects/freeamo/src/main_functions
index 32aeab1..8e4907a 100644
--- a/subprojects/freeamo/src/main_functions
+++ b/subprojects/freeamo/src/main_functions
@@ -68,7 +68,7 @@ function do-locale {
tmp__en_US=$(jq ".results[$entry].$locale_description" "$file" | sed "s|en-US|en_US|" | jq -r .en_US )
tmp__en_GB=$(jq ".results[$entry].$locale_description" "$file" | sed "s|en-GB|en_GB|" | jq -r .en_GB )
# Use the first avalible if English is not avaliable
- tmp=$(jq -r ".results[$entry] | select(.$locale_description != null) | .$locale_description" "$file" | head -n 1) || [[ $? == 141 ]] # Avoid `head -n 1` error `returned 141`
+ tmp=$(jq -r ".results[$entry] | select(.$locale_description != null) | .$locale_description[]" "$file" | head -n 1) || [[ $? == 141 ]] # Avoid `head -n 1` error `returned 141`
if [ "$tmp__en_US" != "null" ]; then