From d2b9ba80548ec6a297dbd78f533897c76bcca638 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 06 2011 17:19:58 +0000 Subject: Update manual_deleteEntry.sh --- diff --git a/Scripts/Bash/Functions/Manual/manual_deleteEntry.sh b/Scripts/Bash/Functions/Manual/manual_deleteEntry.sh index 1ec4aa1..48d0ae6 100755 --- a/Scripts/Bash/Functions/Manual/manual_deleteEntry.sh +++ b/Scripts/Bash/Functions/Manual/manual_deleteEntry.sh @@ -68,7 +68,7 @@ function manual_deleteEntry { for ENTRY in $ENTRIES;do # Verify entry inside the working copy. - if [[ $(cli_getRepoStatus "$ENTRY") =~ '^( |\?)' ]];then + if [[ $(cli_getRepoStatus "$ENTRY") =~ '^(\?)?$' ]];then # Print action message. cli_printMessage "$ENTRY" "AsDeletingLine" @@ -87,11 +87,11 @@ function manual_deleteEntry { # entry can be under version control or not versioned at all. # Here we need to decide how to remove documentation entries # based on wether they are under version control or not. - if [[ "$(cli_getRepoStatus "$ENTRY")" == ' ' ]];then + if [[ "$(cli_getRepoStatus "$ENTRY")" == '' ]];then # Documentation entry is under version control and there - # is no change to be commited up to central repository. We - # are safe to schedule it for deletion. + # is no change to be committed up to central repository. + # We are safe to schedule it for deletion. svn del "$ENTRY" --quiet elif [[ "$(cli_getRepoStatus "$ENTRY")" == '?' ]];then