From 9cf3448eb87c262508b6aaac1e4fc8ad5afa3ac1 Mon Sep 17 00:00:00 2001 From: sam#gemmi-win10 Date: Thu, 7 Dec 2023 00:30:26 +0800 Subject: [PATCH] flux: static/clear.sh |grep -v "/3rd/bin/upx" --- flux/src/static/clear.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/flux/src/static/clear.sh b/flux/src/static/clear.sh index 17999b62..630ce77f 100644 --- a/flux/src/static/clear.sh +++ b/flux/src/static/clear.sh @@ -12,7 +12,16 @@ done # upx ln -s /rootfs/usr/local/static/3rd/bin/upx /bin/upx upx -V -find /rootfs/usr/local/static -type f |egrep "/sbin/|/bin/" |grep -v "/3rd/" |sort |while read one; do +# root@tenvm2:/usr/local/static/3rd# tree -h +# |-- [4.0K] bin +# | |-- [1.2M] gosu +# | |-- [550K] upx +# | `-- [9.3M] yq +# `-- [4.0K] sbin +# |-- [ 13M] frpc +# |-- [ 15M] frps +# `-- [ 24K] tini +find /rootfs/usr/local/static -type f |egrep "/sbin/|/bin/" |grep -v "/3rd/bin/upx" |sort |while read one; do echo -e "\n[upx] $one" du -sh $one upx -7 $one > /dev/null 2>&1 #-7: ref webhookd