From 35919637afca7890c183930418f1d0580361f5dc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 4 Nov 2013 13:00:12 +0100 Subject: Moving testroot into lb wrapper itself. --- frontend/cli/lb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'frontend') diff --git a/frontend/cli/lb b/frontend/cli/lb index a57577f94..a476640eb 100755 --- a/frontend/cli/lb +++ b/frontend/cli/lb @@ -18,6 +18,13 @@ DESCRIPTION="$(Echo 'utility to build live systems')" HELP="FIXME" USAGE="FIXME" +# Checking user account +if [ "$(id -u)" -ne "0" ] +then + Echo_error "need root privileges" + exit 1 +fi + case "${1}" in -h|--help) if [ -x "$(which man 2>/dev/null)" ] -- cgit v1.2.3