Skip to content

Commit 49354e3

Browse files
mstormiopenhabian
authored and
openhabian
committed
changed output file naming (include OS ver, remove shorthash)
Signed-off-by: Markus Storm <[email protected]>
1 parent ad4b218 commit 49354e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build.bash

+3-4
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ if [[ $hwPlatform == "raspios32" ]] || [[ $hwPlatform == "raspios64" ]]; then
386386
fi
387387

388388
echo_process "Moving image and cleaning up... "
389-
shorthash="$(git log --pretty=format:'%h' -n 1)"
389+
#shorthash="$(git log --pretty=format:'%h' -n 1)"
390390
crc32checksum="$(crc32 "$imageFile")"
391391
destination="openhabian-${hwPlatform}-${2:-latest}-${timestamp}-crc${crc32checksum}.img"
392392
mv -v "$imageFile" "$destination"
@@ -396,10 +396,9 @@ echo_process "Compressing image... "
396396
# speedup compression, T0 will use all cores and should be supported by reasonably new versions of xz
397397
xz --verbose --compress --keep -9 -T0 "$destination"
398398
crc32checksum="$(crc32 "${destination}.xz")"
399-
mv "${destination}.xz" "openhabian-${hwPlatform}-${timestamp}-git${shorthash}-crc${crc32checksum}.img.xz"
400-
399+
mv "${destination}.xz" "openhabian-${hwPlatform}-${2:-latest}-${timestamp}-crc${crc32checksum}.img.xz"
401400

402401
echo_process "Finished! The results:"
403-
ls -alh "openhabian-${hwPlatform}-${timestamp}"*
402+
ls -alh "openhabian-${hwPlatform}-${2:-latest}"*
404403

405404
# vim: filetype=sh

0 commit comments

Comments
 (0)