more color!

This commit is contained in:
Marcus 2023-05-01 20:56:16 +02:00
parent e439f445df
commit d9ac469409
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ KERNEL_VER="$($CHROOTCMD /usr/bin/dpkg -l "linux-image-*" |
grep "^ii"| grep "^ii"|
awk '{print $2}' | awk '{print $2}' |
grep -E 'linux-image-[0-9]\.([0-9]|[0-9][0-9])\.([0-9]|[0-9][0-9])-([0-9]|[0-9][0-9]).*-amd64$')" grep -E 'linux-image-[0-9]\.([0-9]|[0-9][0-9])\.([0-9]|[0-9][0-9])-([0-9]|[0-9][0-9]).*-amd64$')"
message "using Kernel $KERNEL_VER" message "using Kernel ${YELLOW}${KERNEL_VER}${ENDCOLOR}"
sudo sed "s/%KERNEL_VER%/${KERNEL_VER}/g" templates/nanodesk-installer.tpl.sh > build/tmp/nanodesk-installer.sh sudo sed "s/%KERNEL_VER%/${KERNEL_VER}/g" templates/nanodesk-installer.tpl.sh > build/tmp/nanodesk-installer.sh
sudo cp build/tmp/nanodesk-installer.sh build/chroot/root/nanodesk-installer.sh sudo cp build/tmp/nanodesk-installer.sh build/chroot/root/nanodesk-installer.sh
sudo chmod +x build/chroot/root/nanodesk-installer.sh sudo chmod +x build/chroot/root/nanodesk-installer.sh

View file

@ -131,7 +131,7 @@ KERNEL_VER="$(dpkg -l "linux-image-*" |
grep -E 'linux-image-[0-9]\.([0-9]|[0-9][0-9])\.([0-9]|[0-9][0-9])-([0-9]|[0-9][0-9]).*-amd64$')" grep -E 'linux-image-[0-9]\.([0-9]|[0-9][0-9])\.([0-9]|[0-9][0-9])-([0-9]|[0-9][0-9]).*-amd64$')"
test -n "$KERNEL_VER" || error test -n "$KERNEL_VER" || error
message "KERNEL_VER=$KERNEL_VER" message "KERNEL_VER=${YELLOW}${KERNEL_VER}${ENDCOLOR}"
### but fetch packages for grub and kernel, so we do not need to download them ### but fetch packages for grub and kernel, so we do not need to download them
### in case nanodesk get installed to diska ### in case nanodesk get installed to diska