From: xf0r3m Date: Thu, 17 Aug 2023 11:54:35 +0000 (+0200) Subject: Dodanie hashu commmitu, jako oznaczenia wersji X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=9713e2cdfe7d338688ee632d6252aceaf113ac54;p=immudex-testing.git Dodanie hashu commmitu, jako oznaczenia wersji --- diff --git a/immudex-build b/immudex-build index 2791727..7f7731c 100755 --- a/immudex-build +++ b/immudex-build @@ -78,6 +78,12 @@ cp -v $(ls -v ${HOME}/build/immudex-testing/${arch}/chroot/boot/vmlinuz-* | tail cp -v $(ls -v ${HOME}/build/immudex-testing/${arch}/chroot/boot/initrd.img-* | tail -1) ${HOME}/build/immudex-testing/${arch}/staging/live/initrd >> immudex_build.log 2>&1; if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi +#Setting version for this image: +echo "-==Setting version for immudex image: $(date)==-" >> immudex_build.log; +echo -n "Setting version for this immudex image..."; +git log --pretty=oneline | head -1 | awk '{printf $1}' | tee ${HOME}/build/immudex-testing/${arch}/staging/live/version >> immudex_build.log 2>&1; +if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi + #Getting and copying bootloader files echo -n "Copying bootloader files..."; arch2=$(echo $1 | sed 's/-//g');