diff options
Diffstat (limited to 'Functions')
-rw-r--r-- | Functions/Misc/zrecompile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Functions/Misc/zrecompile b/Functions/Misc/zrecompile index 0db27f497..8fe990086 100644 --- a/Functions/Misc/zrecompile +++ b/Functions/Misc/zrecompile @@ -129,10 +129,10 @@ if [[ -n $pats ]]; then # old file by renaming it. if [[ -z "$quiet" ]] && - { [[ ! -f $zwc ]] || mv $zwc ${zwc}.old } && + { [[ ! -f $zwc ]] || mv -f $zwc ${zwc}.old } && zcompile $map $tmp $zwc $files; then print succeeded - elif ! { { [[ ! -f $zwc ]] || mv $zwc ${zwc}.old } && + elif ! { { [[ ! -f $zwc ]] || mv -f $zwc ${zwc}.old } && zcompile $map $tmp $zwc $files 2> /dev/null } then [[ -z $quiet ]] && print "re-compiling ${zwc}: failed" ret=1 @@ -233,10 +233,10 @@ for zwc; do # old file by renaming it. if [[ -z "$quiet" ]] && - mv $zwc ${zwc}.old && + mv -f $zwc ${zwc}.old && zcompile $map $zwc $files; then print $mesg - elif ! { mv $zwc ${zwc}.old && + elif ! { mv -f $zwc ${zwc}.old && zcompile $map $zwc $files 2> /dev/null } then [[ -z $quiet ]] && print "re-compiling ${zwc}: failed" ret=1 |