From 21ebee67467d895cb246b83c59976b6fbd21b143 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 28 Oct 1999 06:05:18 +0000 Subject: [PATCH] r297: removed obsolete comment. --- dh_testroot | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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."); +} -- 2.39.5