From: Graydon Hoare Date: Wed, 29 Feb 2012 02:41:54 +0000 (-0800) Subject: configure: chmod the right artifact and cp / mv with -f to overwrite. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1c14d36e72a9fe35470094fc52ef078f53f645df;p=rust.git configure: chmod the right artifact and cp / mv with -f to overwrite. --- diff --git a/configure b/configure index 16af7010377..077723890ac 100755 --- a/configure +++ b/configure @@ -47,8 +47,8 @@ copy_if_changed() { msg "leaving $2 unchanged" else msg "cp $1 $2" - cp $1 $2 - chmod u-w $1 # make copied artifact read-only + cp -f $1 $2 + chmod u-w $2 # make copied artifact read-only fi } @@ -58,8 +58,8 @@ move_if_changed() { msg "leaving $2 unchanged" else msg "mv $1 $2" - mv $1 $2 - chmod u-w $1 # make moved artifact read-only + mv -f $1 $2 + chmod u-w $2 # make moved artifact read-only fi }