From 118f0b1cab6849ccae5f54d4aea3e50aad4ef8e3 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Sat, 3 Jan 2004 09:14:11 +0000 Subject: [PATCH] check if file is actually made into existance before committing to cvs --- mycp/mycp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycp/mycp b/mycp/mycp index 368fa0d..6ff57fd 100755 --- a/mycp/mycp +++ b/mycp/mycp @@ -71,9 +71,9 @@ if ( $cvspath ) { } } } else { - if ( $option{e} ) { + if ( ! -e $_ && $option{e} ) { &edit($_); # edit file - unless (&cmptocvs($_)) { # if changed... then: + if ( -f $_ ) { &cvsupdate($_); # copy file to cvs & check in into cvs # copy file back; don't change permissions }