X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rpm%2Fcreate_rpm_from_here;fp=rpm%2Fcreate_rpm_from_here;h=a5a7c924d4109bcfa90eafab2a4f067a10ab4194;hb=896c9ceb5d3891bd176d825c8abb83a9f8b86f6e;hp=a6dfd593cacb03e1d5554b93b7d32356a4968be9;hpb=6d9dbbb2848170693a28bccbbdd5130bfe232baf;p=rvm-ruby.git diff --git a/rpm/create_rpm_from_here b/rpm/create_rpm_from_here index a6dfd59..a5a7c92 100755 --- a/rpm/create_rpm_from_here +++ b/rpm/create_rpm_from_here @@ -3,6 +3,11 @@ # This script will build a RPM from the files in the current directory, given that there is a rpm/file.spec # Its primary purpose is to be used by Jenkins +if [ $UID == 0 ]; then + echo "Please do not build RPM packages as root" + exit 1 +fi + set -e set -x