From: joey Date: Thu, 28 Oct 1999 06:05:18 +0000 (+0000) Subject: r297: removed obsolete comment. X-Git-Tag: version_2.0.101~301 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=21ebee67467d895cb246b83c59976b6fbd21b143;p=debhelper.git r297: removed obsolete comment. --- diff --git a/dh_testroot b/dh_testroot index fcc9b47..6f9be36 100755 --- a/dh_testroot +++ b/dh_testroot @@ -1,10 +1,11 @@ -#!/bin/sh -e +#!/usr/bin/perl -w # # Checks to make sure you are root. -PATH=debian:$PATH:/usr/lib/debhelper -source dh_lib +BEGIN { push @INC, "debian", "/usr/share/debhelper" } +use Dh_Lib; +init(); -if [ "`whoami`" != root ]; then - error "You must run this as root." -fi +if ($< != 0) { + error("You must run this as root."); +}