From f72afe730a0414ebb3296da2f84d3151dccdf8d2 Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Mon, 24 Nov 2014 13:14:42 -0500
Subject: deps-trisquel: check if user is root

---
(limited to 'deps-trisquel')

diff --git a/deps-trisquel b/deps-trisquel
index 5f9cffc..080cc73 100755
--- a/deps-trisquel
+++ b/deps-trisquel
@@ -18,6 +18,11 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+if [[ $EUID -ne 0 ]]; then
+   echo "This script must be run as root" 
+   exit 1
+fi
+
 set -u -e -v
 
 # Install build dependencies
--
cgit v0.9.1