#!/usr/bin/env bash set -e DESKTOP_FILE_TEMPLATE=$( cat <&2 if [[ $lang_code == "en" ]]; then echo "Name=$(yq .main_window_title <"$lang_file" | tr -d '"')" echo "Description=$(yq .launcher_description <"$lang_file" | tr -d '"')" else name=$(yq .main_window_title <"$lang_file" | tr -d '"') if [[ $name != "null" ]]; then echo "Name[$lang_code]=$name" fi description=$(yq .launcher_description <"$lang_file" | tr -d '"') if [[ $description != null ]]; then echo "Description[$lang_code]=$description" fi fi done