commit | 54047c84d11e8c3731aef553316f12b7f15397cf | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Aug 13 16:08:45 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Aug 13 16:08:45 1998 +0000 |
tree | 3538b837b5001fd9977db51db249eeb42f7bd00b | |
parent | e6e8cdc7484b39875f5ea86cc583f33758381955 [diff] [blame] |
Exit when a mv or cp fails (Sjoerd Mullender).
diff --git a/install-sh b/install-sh index 98204c5..014252c 100755 --- a/install-sh +++ b/install-sh
@@ -102,7 +102,7 @@ # 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 @@ # Now rename the file to the real destination. $doit $rmcmd $dst -$doit $mvcmd $dsttmp $dst +$doit $mvcmd $dsttmp $dst || exit $? exit 0