From: Guido van Rossum Date: Thu, 13 Aug 1998 16:08:45 +0000 (+0000) Subject: Exit when a mv or cp fails (Sjoerd Mullender). X-Git-Tag: v1.5.2a2~402 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54047c84d11e8c3731aef553316f12b7f15397cf;p=python Exit when a mv or cp fails (Sjoerd Mullender). --- diff --git a/install-sh b/install-sh index 98204c558a..014252ced4 100755 --- a/install-sh +++ b/install-sh @@ -102,7 +102,7 @@ dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name -$doit $instcmd $src $dsttmp +$doit $instcmd $src $dsttmp || exit $? # and set any options; do chmod last to preserve setuid bits @@ -114,7 +114,7 @@ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi # Now rename the file to the real destination. $doit $rmcmd $dst -$doit $mvcmd $dsttmp $dst +$doit $mvcmd $dsttmp $dst || exit $? exit 0