Skip to content

Commit 121037c

Browse files
committed
Update
1 parent 17bc692 commit 121037c

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

app/src/main/assets/home/bin/check_add

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
# Kakathic
22

33
name_add=''; file_name=''; check_sum_onl=''; version_add=''; versionc_add='';
4-
54
if 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
2015
else
2116
echo "Network error $name_add"

app/src/main/assets/home/bin/installadd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ else
6060
fi
6161

6262
echo 0 > "$2/$loadid/status"
63-
chmod -R 755 "$2/$loadid"
63+
set_permis -R "$2/$loadid"
6464

6565
if [ -f "$2/$loadid/install.sh" ]; then
6666
"$2/$loadid/install.sh"

0 commit comments

Comments
 (0)