From 9127f25aff12902bf58302982c104704a5bdf202 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 2 Jun 2011 13:08:36 -0300 Subject: Better root user check --- libremakepkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libremakepkg') diff --git a/libremakepkg b/libremakepkg index 8af1581..e46a20a 100755 --- a/libremakepkg +++ b/libremakepkg @@ -57,7 +57,7 @@ while getopts ${libremakepkgargs} arg ; do esac done -if [ $UID -ne 0 ]; then +if [ !-w / ]; then error "This script must be run as root" exit 1 fi -- cgit v1.2.3-54-g00ecf