This repository was archived by the owner on Feb 19, 2024. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
# 更改默认 Shell 为 zsh
7
7
# sed -i 's/\/bin\/ash/\/usr\/bin\/zsh/g' package/base-files/files/etc/passwd
8
8
9
- # TTYD 自动登录
9
+ # TTYD 免登录
10
10
# sed -i 's|/bin/login|/bin/login -f root|g' feeds/packages/utils/ttyd/files/ttyd.config
11
11
12
12
# 移除要替换的包
@@ -20,7 +20,7 @@ rm -rf feeds/luci/applications/luci-app-netdata
20
20
# Git稀疏克隆,只克隆指定目录到本地
21
21
function git_sparse_clone() {
22
22
branch=" $1 " repourl=" $2 " && shift 2
23
- git clone --depth=1 -b $branch --single-branch --sparse $repourl
23
+ git clone --depth=1 -b $branch --single-branch --filter=blob:none -- sparse $repourl
24
24
repodir=$( echo $repourl | awk -F ' /' ' {print $(NF)}' )
25
25
cd $repodir && git sparse-checkout set $@
26
26
mv -f $@ ../package
Original file line number Diff line number Diff line change 6
6
# 更改默认 Shell 为 zsh
7
7
# sed -i 's/\/bin\/ash/\/usr\/bin\/zsh/g' package/base-files/files/etc/passwd
8
8
9
- # TTYD 自动登录
9
+ # TTYD 免登录
10
10
# sed -i 's|/bin/login|/bin/login -f root|g' feeds/packages/utils/ttyd/files/ttyd.config
11
11
12
12
# 移除要替换的包
@@ -22,7 +22,7 @@ rm -rf feeds/luci/applications/luci-app-serverchan
22
22
# Git稀疏克隆,只克隆指定目录到本地
23
23
function git_sparse_clone() {
24
24
branch=" $1 " repourl=" $2 " && shift 2
25
- git clone --depth=1 -b $branch --single-branch --sparse $repourl
25
+ git clone --depth=1 -b $branch --single-branch --filter=blob:none -- sparse $repourl
26
26
repodir=$( echo $repourl | awk -F ' /' ' {print $(NF)}' )
27
27
cd $repodir && git sparse-checkout set $@
28
28
mv -f $@ ../package
You can’t perform that action at this time.
0 commit comments