From 2d7d7fb0ac871ba5d493ccfabd7ce3c2fccf75ff Mon Sep 17 00:00:00 2001 From: cas Date: Mon, 23 Jul 2001 18:21:58 +0000 Subject: [PATCH] No comments --- src/WOKUtils/WOKUtils_Replace.tcl | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/WOKUtils/WOKUtils_Replace.tcl b/src/WOKUtils/WOKUtils_Replace.tcl index 8263ffe..d3768f4 100755 --- a/src/WOKUtils/WOKUtils_Replace.tcl +++ b/src/WOKUtils/WOKUtils_Replace.tcl @@ -62,20 +62,11 @@ proc WOKUtils_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 "WOKUtils_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 "WOKUtils_Replace::Execute" "No change in $source" + msgprint -i -c "WOKUtils_Replace::Execute" "Copy $source to $target" + if { [file exist $target] && ( [wokparam -e %Station ] != "wnt" ) } { + eval exec "chmod u+w $target" } + eval exec "$copycmd $TheArgs" } return 0; } -- 2.39.5