other/04_remove_upx.sh
zhao 025ec5a1c5 添加 04_remove_upx.sh
Signed-off-by: zhao <zhao@noreply.localhost>
2025-04-14 11:35:35 +08:00

11 lines
329 B
Bash

#!/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