Skip to content

Commit

Permalink
flux: static/clear.sh |grep -v "/3rd/bin/upx"
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Dec 6, 2023
1 parent 0c6e97c commit 9cf3448
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion flux/src/static/clear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cf3448

Please sign in to comment.