diff options
author | joey <joey> | 1999-08-17 04:58:44 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:58:44 +0000 |
commit | 0287a9cbf507569b92fa157fb002a4ead079bbdb (patch) | |
tree | 313b23c7a754168412793181aaacc2d523c3361e /dh_testroot | |
parent | 225d86509ae859057d89f3ad88c1b6de7c8e98ba (diff) | |
download | debhelper-0287a9cbf507569b92fa157fb002a4ead079bbdb.tar.gz |
r116: Initial Import
Diffstat (limited to 'dh_testroot')
-rwxr-xr-x | dh_testroot | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/dh_testroot b/dh_testroot index c7041094..629b8f84 100755 --- a/dh_testroot +++ b/dh_testroot @@ -1,12 +1,13 @@ -#!/bin/sh -e +#!/usr/bin/perl -w # # Checks to make sure you are root. -PATH=debian:$PATH:/usr/lib/debhelper -. dh_lib +BEGIN { push @INC, "debian", "/usr/lib/debhelper" } +use Dh_Lib; +init(); # Test for uid = 0, not username of root, becuase # some people rename root. -if [ "`id -u`" != 0 ]; then - error "You must run this as root." -fi +if ($< != 0) { + error("You must run this as root."); +} |