From 64dd7c605b14bc351f44e066f8058520f581326f Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Tue, 27 Mar 2007 23:03:09 +0900 Subject: warning message goes to &2 --- pbuilder-runhooks | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pbuilder-runhooks') diff --git a/pbuilder-runhooks b/pbuilder-runhooks index a1882a7..edec9fd 100644 --- a/pbuilder-runhooks +++ b/pbuilder-runhooks @@ -124,7 +124,7 @@ function loadhooks () { if [ -d "$HOOKDIR" ]; then mkdir -p "$BUILDPLACE/$hooks" if ! cp -a "$HOOKDIR/"* "$BUILDPLACE/$hooks"; then - echo "W: no hooks found on the hookdir" + echo "W: no hooks found on the hookdir" >&2 fi fi } @@ -163,13 +163,13 @@ function executehooks () { for fn in "$BUILDPLACE/$hooks/$prefix"[0-9][0-9]* ; do case "$fn" in "$BUILDPLACE/$hooks/$prefix"'[0-9][0-9]*') - echo "W: no hooks of type ${prefix} found -- ignoring" + echo "W: no hooks of type ${prefix} found -- ignoring" >&2 ;; *~) - echo "W: skipping an editor backup file $fn" + echo "W: skipping an editor backup file $fn" >&2 ;; *.bak) - echo "W: skipping a backup file $fn" + echo "W: skipping a backup file $fn" >&2 ;; *) if [ -x "$fn" ]; then @@ -178,10 +178,10 @@ function executehooks () { else if [ -f "$fn" ]; then filetype=$(basename "$fn" ) - echo "W: execute priv not set on file $filetype, not executing." + echo "W: execute priv not set on file $filetype, not executing." >&2 else # Should it reach here ? This case should be caught in the above case. - echo "W: no hooks of type ${prefix} found -- internal error in logic" + echo "W: no hooks of type ${prefix} found -- internal error in logic" >&2 fi fi ;; -- cgit v1.2.3