summaryrefslogtreecommitdiff
path: root/libremakepkg
diff options
context:
space:
mode:
Diffstat (limited to 'libremakepkg')
-rwxr-xr-xlibremakepkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/libremakepkg b/libremakepkg
index e9fe1a2..b02b778 100755
--- a/libremakepkg
+++ b/libremakepkg
@@ -60,7 +60,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