From 0c0b9863952205e439f1888ffa04bb7e949d4624 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 11 Feb 2011 11:05:51 -0800 Subject: [PATCH] arg --- build_debs.sh | 2 ++ build_dsc.sh | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build_debs.sh b/build_debs.sh index c5d41068..cc921728 100755 --- a/build_debs.sh +++ b/build_debs.sh @@ -15,6 +15,8 @@ dists=$4 echo version $cephver +whoami=`whoami` +[ "$whoami" != "root" ] && echo "must run as root not $whoami" && exit 1 [ -z "$dists" ] && dists=`cat $releasedir/$cephver/debian_dists` dvers=`cat $releasedir/$cephver/debian_version` diff --git a/build_dsc.sh b/build_dsc.sh index a7e1c141..b84740d3 100755 --- a/build_dsc.sh +++ b/build_dsc.sh @@ -15,9 +15,6 @@ dists="$*" [ -z "$debsubver" ] && debsubver=1 [ -z "$dists" ] && dists="sid squeeze lenny maverick lucid" -whoami=`whoami` -[ "$whoami" != "root" ] && echo "must run as root not $whoami" && exit 1 - bindir=`dirname $0` echo "$bindir" | grep -v -q '^/' && bindir=`pwd`"/$bindir" -- 2.39.5