]> piware.de Git - bin.git/commitdiff
build-debian-toolbox: Default VERSION_ID
authorMartin Pitt <martin@piware.de>
Sat, 11 Apr 2020 20:09:36 +0000 (22:09 +0200)
committerMartin Pitt <martin@piware.de>
Sat, 11 Apr 2020 20:09:36 +0000 (22:09 +0200)
Sid doesn't have a VERSION_ID.

build-debian-toolbox

index fbeb13b2f95bc7c17c1d9916421692ec911fa566..821b52b91411e29567eeab944a9fb649b695b8cc 100755 (executable)
@@ -31,7 +31,7 @@ sudo umount /var/log/journal
 
 # useful hostname
 . /etc/os-release
-echo "${ID}-${VERSION_ID}" | sudo tee /etc/hostname
+echo "${ID}-${VERSION_ID:-sid}" | sudo tee /etc/hostname
 sudo hostname -F /etc/hostname
 
 sudo eatmydata apt-get -y dist-upgrade