Skip to content

Commit 4e9cb67

Browse files
committed
refactor: simplify upx compression logic
1 parent 1418092 commit 4e9cb67

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

scripts/download-binary.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,10 @@ tar -xzf binary.tar.gz beszel-agent || {
3535

3636
chmod +x beszel-agent
3737

38-
if command -v upx >/dev/null 2>&1; then
39-
echo "Compressing binary with UPX..."
40-
upx --best --lzma beszel-agent || {
41-
echo "WARNING: UPX compression failed, continuing with uncompressed binary" >&2
42-
}
43-
else
44-
echo "WARNING: UPX not found, skipping compression" >&2
45-
fi
38+
echo "Compressing binary with UPX..."
39+
upx --best --lzma beszel-agent || {
40+
echo "WARNING: UPX compression failed, continuing with uncompressed binary" >&2
41+
}
4642

4743
mkdir -p "$OUTPUT_DIR"
4844
mv beszel-agent "$OUTPUT_DIR/"

0 commit comments

Comments
 (0)