summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-24 13:14:42 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-11-24 13:14:42 (EST)
commitf72afe730a0414ebb3296da2f84d3151dccdf8d2 (patch)
treea23ac175c5299cae3d737e4b1952a8e6a9c17efb
parent591532f6fbd1219c79efb545ac33623222a6f94f (diff)
downloadlibreboot-f72afe730a0414ebb3296da2f84d3151dccdf8d2.zip
libreboot-f72afe730a0414ebb3296da2f84d3151dccdf8d2.tar.gz
libreboot-f72afe730a0414ebb3296da2f84d3151dccdf8d2.tar.bz2
deps-trisquel: check if user is root
-rwxr-xr-xdeps-trisquel5
1 files changed, 5 insertions, 0 deletions
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