]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
jail-commit: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 20:19:37 +0000 (20:19 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 20:19:37 +0000 (20:19 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@298 04377dda-e619-0410-9926-eae83683ac58

trunk/src/jail-commit

index c336f95a4346bd5952ddd62657c461200f7b4d69..c910c031fda87554b3dad963fd21b472a860b1a7 100755 (executable)
@@ -123,7 +123,7 @@ function do_commit {
   fi
 
   search_template $template --update
-  if [ "$?" == "0" ] || ! echo $TEMPLATE_UPDATE_LIST | grep -q " `basename $TEMPLATE_BASE` "; then
+  if [ "$?" == "0" ] && ! echo $TEMPLATE_UPDATE_LIST | grep -q " `basename $TEMPLATE_BASE` "; then
     TEMPLATE_UPDATE_LIST=" $TEMPLATE_UPDATE_LIST `basename $TEMPLATE_BASE` " # the spaces are important
     if [ "$jailpath" == "/" ]; then
       echo Updating main installation...