File tree Expand file tree Collapse file tree
app/src/main/assets/home/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Kakathic
22
33name_add=''; file_name=''; check_sum_onl=''; version_add=''; versionc_add='';
4-
54if checkonline; then
65 source language 2>/dev/null
76 name_add="$(gprop name $1/download.prop)"
8- version_add="$(gprop version $1/download.prop)"
9- versionc_add="$(gprop versionCode $1/download.prop)"
107 echo "Start checking for updates: $name_add"
118 echo
129 file_name="$(gprop url $1/download.prop)"
1310 check_sum_onl="$(xem https://api.github.com/repos/Zenlua/Tool-Tree/releases/tags/V1 | jq -r --arg name "${file_name##*/}" '.assets[] | select(.name == $name) | .digest' | cut -d: -f2)"
14- if [ "$check_sum_onl" ]; then
15- if [[ "$check_sum_onl" != "$(glog check_sum_addon_${1##*/})" ]]; then
16- showtoast "$updating_text add-on: $name_add $version_add ($versionc_add)"
17- installadd "$file_name" "${1%/*}" 2>&1 && showtoast "$update_text $flash_text_12: $name_add $version_add ($versionc_add)" || showtoast "$load_text_2 $name_add"
18- fi
11+ if [[ "$check_sum_onl" ]] && [[ "$check_sum_onl" != "$(glog check_sum_addon_${1##*/})" ]]; then
12+ showtoast "$updating_text add-on: $name_add"
13+ installadd "$file_name" "${1%/*}" 2>&1 && showtoast "$update_text $flash_text_12: $name_add $(gprop version $1/addon.prop) ($(gprop versionCode $1/addon.prop))" || showtoast "$load_text_2 $name_add"
1914 fi
2015else
2116 echo "Network error $name_add"
Original file line number Diff line number Diff line change 6060fi
6161
6262echo 0 > " $2 /$loadid /status"
63- chmod -R 755 " $2 /$loadid "
63+ set_permis -R " $2 /$loadid "
6464
6565if [ -f " $2 /$loadid /install.sh" ]; then
6666 " $2 /$loadid /install.sh"
You can’t perform that action at this time.
0 commit comments