[ostree] parallel-debian: Ensure we're not running make-base as root actually
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] parallel-debian: Ensure we're not running make-base as root actually
- Date: Thu, 10 Nov 2011 18:00:49 +0000 (UTC)
commit 4c7bf3936acfc2126ada03ae5e0afbe6725e9c44
Author: Colin Walters <walters verbum org>
Date: Thu Nov 10 11:56:34 2011 -0500
parallel-debian: Ensure we're not running make-base as root actually
parallel-debian/gnomeos-make-base.sh | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/parallel-debian/gnomeos-make-base.sh b/parallel-debian/gnomeos-make-base.sh
index eb80b04..f95c377 100755
--- a/parallel-debian/gnomeos-make-base.sh
+++ b/parallel-debian/gnomeos-make-base.sh
@@ -35,6 +35,11 @@ EOF
fi
done
+if test $(id -u) == 0; then
+ echo "Should not run this script as root."
+ exit 1
+fi
+
if test -z "${OSTREE}"; then
OSTREE=`command -v ostree || true`
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]