From f72afe730a0414ebb3296da2f84d3151dccdf8d2 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 24 Nov 2014 18:14:42 +0000 Subject: deps-trisquel: check if user is root --- deps-trisquel | 5 +++++ 1 file changed, 5 insertions(+) (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 . # +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi + set -u -e -v # Install build dependencies -- cgit v1.2.3-54-g00ecf