Skip to content

Commit 8dc84cf

Browse files
committed
Update
1 parent 5244125 commit 8dc84cf

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/addon/hack_wifi/menu.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
MPAT="${0%/*}"
44

5-
true || echo '
5+
if [ -f $ETC/error.toml ]; then
6+
echo '
67
[[group.page.options]]
78
type = "default"
89
title = "@string/update_text"
@@ -19,3 +20,4 @@ true || echo '
1920
style = "fab"
2021
icon = "'$ETC'/icon/Loading.png"
2122
'
23+
fi

.github/addon/patch_rom/menu.bash

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# Kakathic
22

33
MPAT="${0%/*}"
4-
true || echo '
4+
if [ -f $ETC/error.toml ]; then
5+
echo '
56
[[group.page.options]]
67
type = "refresh"
78
title = "@string/refresh_text"
8-
9+
910
[[group.page.options]]
1011
key = "123"
1112
type = "default"
1213
title = "@string/update_text add-on"
1314
auto-finish = true
1415
script = """
1516
[ "$menu_id" == "123" ] && '$MPAT'/index.bash update_addon
16-
"""
17-
'
17+
""" '
18+
fi
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[group.text]]
2+
title = "Error"
3+
desc = "Page load failed"

0 commit comments

Comments
 (0)