From 89f63f45fb6baca5b3b12ad432d37e24c7cf818c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 15 Dec 2019 20:25:18 +0100 Subject: [PATCH] Bullseye bugfix: improved grep --- lib/distributions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/distributions.sh b/lib/distributions.sh index 84303d9f68..bb4eb6ec2e 100644 --- a/lib/distributions.sh +++ b/lib/distributions.sh @@ -437,8 +437,8 @@ install_distribution_specific() # rc.local is not existing but one might need it install_rclocal # fix missing versioning - [[ $(grep -L "VERSION_ID" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION_ID="11"' >> "${SDCARD}"/etc/os-release - [[ $(grep -L "VERSION" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION="11 (bullseye)"' >> "${SDCARD}"/etc/os-release + [[ $(grep -L "VERSION_ID=" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION_ID="11"' >> "${SDCARD}"/etc/os-release + [[ $(grep -L "VERSION=" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION="11 (bullseye)"' >> "${SDCARD}"/etc/os-release # remove security updates repository since it does not exists yet sed '/security/ d' -i "${SDCARD}"/etc/apt/sources.list