Skip to content

Commit 5fd7327

Browse files
committed
Fix incorrect package size calculation
The du command prints the size and then the full path and if the full path contains numbers, the tr command adds them to the size. Therefore it is better to use awk.
1 parent 03e53eb commit 5fd7327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/deb-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Depends: $PACKAGE_DEPENDS
227227
Architecture: $PACKAGE_ARCH
228228
Maintainer: Nick Egorrov <[email protected]>
229229
Description: $PACKAGE_DEBIAN_DESCRIPTION
230-
Installed-Size: $(du -s "$PACKAGE_DIR" | tr -cd 0-9)
230+
Installed-Size: $(du -s "$PACKAGE_DIR" | awk '{print $1}')
231231
EOF
232232

233233
if [ -f "${PACKAGE_FULL_NAME}.deb" ]; then

0 commit comments

Comments
 (0)