Fix typos in releaser script
authorColeman Watts <coleman@civicrm.org>
Tue, 9 Jul 2013 03:18:47 +0000 (20:18 -0700)
committerColeman Watts <coleman@civicrm.org>
Tue, 9 Jul 2013 03:18:47 +0000 (20:18 -0700)
tools/scripts/releaser/releaser

index 2e9452316e148eabbe85bf48634c7f00310391c8..746a334cd25eaec48c2e30fc7269df4a67e44d8d 100755 (executable)
@@ -173,8 +173,8 @@ function do_update() {
     cd $workdir/$version/export
     # create sql upgrade file
     tpl="CRM/Upgrade/Incremental/sql/$new_ver.mysql.tpl"
-    if [ -f tpl ]; then
-      echo "{* file to handle db changes in $new_ver during upgrade *}" >> $tpl
+    if [ ! -f $tpl ]; then
+      echo "{* file to handle db changes in $new_ver during upgrade *}" > $tpl
     fi
     # escape regex special chars
     arg=`echo "$version" | sed 's:[]\[\^\$\.\*\/]:\\\\&:g'`