diff options
author | Guido van Rossum <guido@python.org> | 1998-08-13 16:08:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-13 16:08:45 (GMT) |
commit | 54047c84d11e8c3731aef553316f12b7f15397cf (patch) | |
tree | 3538b837b5001fd9977db51db249eeb42f7bd00b /install-sh | |
parent | e6e8cdc7484b39875f5ea86cc583f33758381955 (diff) | |
download | cpython-54047c84d11e8c3731aef553316f12b7f15397cf.zip cpython-54047c84d11e8c3731aef553316f12b7f15397cf.tar.gz cpython-54047c84d11e8c3731aef553316f12b7f15397cf.tar.bz2 |
Exit when a mv or cp fails (Sjoerd Mullender).
Diffstat (limited to 'install-sh')
-rwxr-xr-x | install-sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |