rename branch name to main

This commit is contained in:
sbwml 2024-09-14 16:05:17 +08:00
parent 01a2435be9
commit 3c30ffc3ab
2 changed files with 7 additions and 8 deletions

View File

@ -29,7 +29,7 @@ A file list program that supports multiple storage.
*1. requires golang 1.22.x or latest version (Fix build for older branches of OpenWrt.)*
```shell
rm -rf feeds/packages/lang/golang
git clone https://github.com/sbwml/packages_lang_golang -b 22.x feeds/packages/lang/golang
git clone https://github.com/sbwml/packages_lang_golang -b 23.x feeds/packages/lang/golang
```
*2. get luci-app-alist source & building*
@ -53,10 +53,9 @@ A file list program that supports multiple storage.
- Execute install script (Multi-architecture support)
```shell
sh -c "$(curl -ksS https://raw.githubusercontent.com/sbwml/luci-app-alist/master/install.sh)"
sh -c "$(curl -ksS https://raw.githubusercontent.com/sbwml/luci-app-alist/main/install.sh)"
```
--------------
![](https://user-images.githubusercontent.com/16485166/190462187-5d54725e-1d9b-45f3-854f-403b882fb223.png)
![](https://github.com/user-attachments/assets/cf0435ec-4aa4-4c12-bcab-18949e4ea840)

View File

@ -15,10 +15,10 @@ else
exit 1
fi
# check
# check luci
if [ ! -d "/usr/share/luci/menu.d" ]; then
echo -e "${RED_COLOR}OpenWrt LuCI version is not supports.${RES}"
echo -e "${RED_COLOR}Minimum OpenWrt Version: openwrt-21.02 or latest${RES}"
echo -e "${RED_COLOR}OpenWrt LuCI version is not support JavaScript.${RES}"
echo -e "${RED_COLOR}Minimum OpenWrt Version (openwrt.org): openwrt-21.02 or latest.${RES}"
exit 1
fi
@ -31,7 +31,7 @@ country_code=$(echo $ip_info | sed -r 's/.*country_code":"([^"]*).*/\1/')
if [ $country_code = "CN" ]; then
google_status=$(curl -I -4 -m 3 -o /dev/null -s -w %{http_code} http://www.google.com/generate_204)
if [ ! $google_status = "204" ];then
mirror="https://mirror.ghproxy.com/"
mirror="https://ghp.ci/"
fi
fi