From da5ee0f6f48cb1ab8dc228676ae696093dd72276 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 25 Nov 2002 20:00:36 +0000 Subject: [PATCH] Use `$0:' at the beginning of each diagnostic, not `install:'. --- lib/install-sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/install-sh b/lib/install-sh index da04bd2..36f96f3 100755 --- a/lib/install-sh +++ b/lib/install-sh @@ -106,7 +106,7 @@ done if [ x"$src" = x ] then - echo "install: no input file specified" >&2 + echo "$0: no input file specified" >&2 exit 1 else : @@ -132,13 +132,13 @@ else then : else - echo "install: $src does not exist" >&2 + echo "$0: $src does not exist" >&2 exit 1 fi if [ x"$dst" = x ] then - echo "install: no destination specified" >&2 + echo "$0: no destination specified" >&2 exit 1 else : @@ -255,7 +255,7 @@ else $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || { - echo "install: cannot unlink or rename $dstdir/$dstfile" >&2 + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit } else -- 2.7.4