添加 04_remove_upx.sh

Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
zhao 2025-04-14 11:35:35 +08:00
parent 84550fe922
commit 025ec5a1c5

11
04_remove_upx.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# [CTCGFW]immortalwrt
# Use it under GPLv3, please.
# --------------------------------------------------------
# Remove upx commands
makefile_file="$({ find package | grep Makefile | sed "/Makefile./d"; } 2>"/dev/null")"
for a in ${makefile_file}; do
[ -n "$(grep "upx" "$a")" ] && sed -i "/upx/d" "$a"
done
exit 0