From a14a861210c8a1374d0809f674ccf767088a41ac Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 21 Jul 2017 12:37:40 +0200 Subject: Check for lsb_release It can be installed via the lsb-release package on Debian and derivatives --- build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build') diff --git a/build b/build index 4ecf40a..bc4806c 100755 --- a/build +++ b/build @@ -11,6 +11,10 @@ echo "Options:" echo " -s, --skip Skip apt-get update/upgrade" } +command -v lsb_release >/dev/null 2>&1 || { + echo "Could not find lsb_release. Please install lsb-release" + exit 1 +} DIST=`lsb_release -cs` # URL of the local CRAN repo for checking for existing builds -- cgit v1.2.1