diff --git a/pkgupdate b/pkgupdate index 23512cc..371d2f5 100755 --- a/pkgupdate +++ b/pkgupdate @@ -74,6 +74,12 @@ then exit 1 fi +if [ "$(id -u)" -ne 0 ] +then + echo "You need to run $0 as root" + exit 1 +fi + case "$INSTALLURL" in http://*) do_http "http://" ;;