diff options
author | Guido van Rossum <guido@python.org> | 1998-08-13 16:08:45 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-13 16:08:45 +0000 |
commit | d93b4dcb8d5076d61e48698c191c070b2f85022f (patch) | |
tree | 1a73aefcf351db86b4f128989b417fcf5012279f /install-sh | |
parent | 463796ff8f08eecaa5b38a2b97ff9b92da1a92ce (diff) | |
download | cpython-d93b4dcb8d5076d61e48698c191c070b2f85022f.tar.gz |
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
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 |