Skip to content

Commit 73869ac

Browse files
committed
Upload file
1 parent 17da3df commit 73869ac

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [Tool-Tree](https://zenlua.github.io/Tool-Tree) ![GitHub Release](https://img.shields.io/github/v/release/Zenlua/Tool-Tree?label=)
22

3-
- Supports both `root` and `non-root` versions and is only for `arm64-bit`
3+
- Supports both `root` or `non-root` versions and is only for `arm64-bit`
44

55
- Version history: **[See details](https://zenlua.github.io/Tool-Tree/Version.html)**
66

pio/src/main/assets/root/executor.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export xu=xu
6767
fi
6868

6969
if [ "$CPU_ABI" != 'arm64-v8a' ];then
70-
text_error="Only arm64-v8a devices supported"
70+
text_error="Only arm64-v8a devices supported"
7171
showtoast "$text_error"
7272
echo "$text_error" >&2
7373
sleep 10
@@ -76,11 +76,14 @@ else
7676
export ARCH=arm64
7777
fi
7878

79-
if [ -f "$1" ];then
79+
if [ -f "$1" ]; then
80+
chmod 755 "$1" 2>/dev/null
8081
cd "$HOME";
8182
source "$1";
8283
rm -f "$1";
8384
else
84-
echo "Error file" >&2
85-
sleep 5
85+
if [ "$1" ]; then
86+
echo "Error file" >&2
87+
sleep 5
88+
fi
8689
fi

0 commit comments

Comments
 (0)