diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-11-24 18:14:42 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-11-24 18:14:42 +0000 |
commit | f72afe730a0414ebb3296da2f84d3151dccdf8d2 (patch) | |
tree | a23ac175c5299cae3d737e4b1952a8e6a9c17efb /deps-trisquel | |
parent | 591532f6fbd1219c79efb545ac33623222a6f94f (diff) |
deps-trisquel: check if user is root
Diffstat (limited to 'deps-trisquel')
-rwxr-xr-x | deps-trisquel | 5 |
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 |