aboutsummaryrefslogtreecommitdiff
path: root/bundles
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-11 21:57:51 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-11 21:57:51 +0200
commiteee574cbef258b48dad99f1552d8e5c7c54f8e72 (patch)
tree557ec8f4b0047e3dbf7dfcf96e7d71cfcab91279 /bundles
parenta40383916c16be8ebf4313c5a714ab308baffe0c (diff)
create-bundle: Add root run protection.
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/create-bundle5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/create-bundle b/bundles/create-bundle
index e801d72..b273f14 100755
--- a/bundles/create-bundle
+++ b/bundles/create-bundle
@@ -37,6 +37,11 @@ else
exit 1
fi
+if [ $(id -u -n) = "root" ]; then
+ echo "This script must not be run as 'root' user"
+ exit 1
+fi
+
DRYRUN=0
if [ "$1" == "--dry-run" ]; then
DRYRUN=1