File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ if [[ $hwPlatform == "raspios32" ]] || [[ $hwPlatform == "raspios64" ]]; then
386
386
fi
387
387
388
388
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)"
390
390
crc32checksum=" $( crc32 " $imageFile " ) "
391
391
destination=" openhabian-${hwPlatform} -${2:- latest} -${timestamp} -crc${crc32checksum} .img"
392
392
mv -v " $imageFile " " $destination "
@@ -396,10 +396,9 @@ echo_process "Compressing image... "
396
396
# speedup compression, T0 will use all cores and should be supported by reasonably new versions of xz
397
397
xz --verbose --compress --keep -9 -T0 " $destination "
398
398
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"
401
400
402
401
echo_process " Finished! The results:"
403
- ls -alh " openhabian-${hwPlatform} -${timestamp } " *
402
+ ls -alh " openhabian-${hwPlatform} -${2 :- latest } " *
404
403
405
404
# vim: filetype=sh
You can’t perform that action at this time.
0 commit comments