Explorar o código

move emoji.json to main repo

tab
Daniel Gibbs %!s(int64=4) %!d(string=hai) anos
pai
achega
64651fb293
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lgsm/functions/info_distro.sh

+ 2 - 2
lgsm/functions/info_distro.sh

@@ -258,11 +258,11 @@ if [ -z "${extip}" ]; then
 	country="$(echo "${ipapijson}" | jq -r .country)"
 	country="$(echo "${ipapijson}" | jq -r .country)"
 
 
 	if [ ! -f "${datadir}/emoji.json" ];then
 	if [ ! -f "${datadir}/emoji.json" ];then
-		fn_fetch_file "https://raw.githubusercontent.com/GameServerManagers/unicode-emoji-json/main/data-by-emoji.json" "${datadir}" "emoji.json"
+		fn_fetch_file_github "lgsm/data" "emoji.json" "${datadir}"
 	fi
 	fi
 
 
 	if [ -n "${country}" ]&&[ -f "${datadir}/emoji.json" ];then
 	if [ -n "${country}" ]&&[ -f "${datadir}/emoji.json" ];then
-	 countryflag="$(jq -r --arg country "flag $country" 'to_entries[]| {"emoji": .key, "name": .value.name} | select(.name==$country)|.emoji' ${datadir}/emoji.json)"
+		countryflag="$(jq -r --arg country "flag $country" 'to_entries[]| {"emoji": .key, "name": .value.name} | select(.name==$country)|.emoji' ${datadir}/emoji.json)"
  	fi
  	fi
 
 
 	exitcode=$?
 	exitcode=$?