Commit 54047c84 authored by Guido van Rossum's avatar Guido van Rossum

Exit when a mv or cp fails (Sjoerd Mullender).

parent e6e8cdc7
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment