diff options
author | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-03-27 23:03:09 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-03-27 23:03:09 +0900 |
commit | 64dd7c605b14bc351f44e066f8058520f581326f (patch) | |
tree | 8d87b98c7a0990abfaf746363a8d3afec307802f /pbuilder-runhooks | |
parent | bd094de859887e9daad09a5e044fbd5042d399bc (diff) | |
download | pbuilder-64dd7c605b14bc351f44e066f8058520f581326f.tar pbuilder-64dd7c605b14bc351f44e066f8058520f581326f.tar.gz |
warning message goes to &2
Diffstat (limited to 'pbuilder-runhooks')
-rw-r--r-- | pbuilder-runhooks | 12 |
1 files changed, 6 insertions, 6 deletions
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 ;; |