enhance transhell logic

This commit is contained in:
CongTianKong
2023-08-01 21:53:27 +08:00
parent bb4347cfc6
commit c06c29d22b

View File

@@ -4,9 +4,13 @@ if [ -x "/opt/durapps/transhell/transhell.sh" ]
then
source /opt/durapps/transhell/transhell.sh
load_transhell
else
if [ -f "/usr/share/ablrun/transhell/ablrun_${LANG%.*}.transhell" ]
then
source "/usr/share/ablrun/transhell/ablrun_${LANG%.*}.transhell"
else
source /usr/share/ablrun/transhell/ablrun_en_US.transhell
source /usr/share/ablrun/transhell/ablrun_$(echo ${LANG%.*}).transhell
fi
fi
if [ "$*" = "" ]