rename branch name to main
This commit is contained in:
parent
01a2435be9
commit
3c30ffc3ab
@ -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)"
|
||||
```
|
||||
|
||||
--------------
|
||||
|
||||

|
||||
|
||||

|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user