From 68bca047737e7877b271a74a3a9e4a671723fe6b Mon Sep 17 00:00:00 2001 From: cas Date: Mon, 23 Jul 2001 18:21:58 +0000 Subject: [PATCH] No comments --- src/WOKTools/WOKTools_Replace.tcl | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/WOKTools/WOKTools_Replace.tcl b/src/WOKTools/WOKTools_Replace.tcl index 4fb6b0c..c0ace60 100755 --- a/src/WOKTools/WOKTools_Replace.tcl +++ b/src/WOKTools/WOKTools_Replace.tcl @@ -50,20 +50,12 @@ proc WOKTools_Replace:Execute { unit args } { regsub -all "/" " $source $target" $replstr TheArgs - if { [file exist $target] } { - set A [catch {eval "wokcmp $TheArgs"} result ] - } else { - set result 0 } - - if { ! $result } { - msgprint -i -c "WOKTools_Replace::Execute" "Copy $source to $target" - if { [file exist $target] && [wokparam -e %Station] != "wnt" } { + msgprint -i -c "WOKTools_Replace::Execute" "Copy $source to $target" + if { [file exist $target] && [wokparam -e %Station] != "wnt" } { eval exec "chmod u+w $target" - } - eval exec "$copycmd $TheArgs" - } else { - msgprint -i -c "WOKTools_Replace::Execute" "No change in $source" } + eval exec "$copycmd $TheArgs" + } return 0; } -- 2.39.5