[postgis-tickets] r16309 - one more try to get this bash logic right

Regina Obe lr at pcorp.us
Mon Jan 15 02:28:08 PST 2018


Author: robe
Date: 2018-01-15 14:28:08 -0800 (Mon, 15 Jan 2018)
New Revision: 16309

Modified:
   trunk/ci/debbie/postgis_release_docs.sh
Log:
one more try to get this bash logic right

Modified: trunk/ci/debbie/postgis_release_docs.sh
===================================================================
--- trunk/ci/debbie/postgis_release_docs.sh	2018-01-15 22:17:44 UTC (rev 16308)
+++ trunk/ci/debbie/postgis_release_docs.sh	2018-01-15 22:28:08 UTC (rev 16309)
@@ -44,7 +44,7 @@
 #sed -e "s:</title>:</title><subtitle><subscript>SVN Revision (<emphasis>${POSTGIS_SVN_REVISION}</emphasis>)</subscript></subtitle>:" postgis.xml.orig > postgis.xml
 
 #inject a development time stamp if we are in development branch
-if [ "${POSTGIS_MICRO_VERSION}"  == *dev* ] ; then
+if [[ ${POSTGIS_MICRO_VERSION} == *"dev"* ]]; then
   export GIT_TIMESTAMP=`git log -1 --pretty=format:%ct`
   sed -e "s:</title>:</title><subtitle><subscript>DEV TIMESTAMP (<emphasis>${GIT_TIMESTAMP}</emphasis>)</subscript></subtitle>:" postgis.xml.orig > postgis.xml
 fi
@@ -56,7 +56,7 @@
 make epub
 make -e chunked-html 2>&1 | tee -a doc-errors.log
 
-if [ "$reference"  == *trunk* ] ; then  #only do this for trunk because only trunk follows transifex
+if [[ "$reference" == *"trunk"* ]]; then  #only do this for trunk because only trunk follows transifex
 	make update-po
   make -C po/it_IT/ local-html
   make -C po/pt_BR/ local-html



More information about the postgis-tickets mailing list