[SCM] live-config branch, debian-next, updated. debian/2.0_a13-1-2-g37c4cda

Daniel Baumann daniel at debian.org
Thu Jul 15 22:12:33 UTC 2010


The following commit has been merged in the debian-next branch:
commit 37c4cda20c0fcdd08c34cf66c147d7ee0f939c62
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Jul 16 00:11:15 2010 +0200

    Adding check for lsb_release in update-live-config script.

diff --git a/bin/update-live-config.sh b/bin/update-live-config.sh
index 7c8ce8e..e10e9ea 100755
--- a/bin/update-live-config.sh
+++ b/bin/update-live-config.sh
@@ -10,6 +10,15 @@ then
 	exit 1
 fi
 
+if [ ! -x "$(which lsb_release 2>/dev/null)" ]
+	echo "E: lsb_release - command not found"
+	echo "I: lsb_release can be optained from:"
+	echo "I:   http://www.linux-foundation.org/en/LSB"
+	echo "I: On Debian systems, lsb_release can be installed with:"
+	echo "I:   apt-get install lsb-release"
+	exit 1
+fi
+
 _DISTRIBUTION="$(lsb_release -is | tr [A-Z] [a-z])"
 _RELEASE="$(lsb_release -cs | tr [A-Z] [a-z])"
 

-- 
live-config



More information about the debian-live-changes mailing list