]> granicus.if.org Git - postgis/commitdiff
one more try to get this bash logic right
authorRegina Obe <lr@pcorp.us>
Mon, 15 Jan 2018 22:28:08 +0000 (22:28 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 15 Jan 2018 22:28:08 +0000 (22:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16309 b70326c6-7e19-0410-871a-916f4a2858ee

ci/debbie/postgis_release_docs.sh

index 3ad9c95cf80df91f458667784e0e66a4389186f4..43ec9d7f5ee690733a3bfcd9019eedb0c910be2d 100644 (file)
@@ -44,7 +44,7 @@ mv postgis.xml postgis.xml.orig
 #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 @@ cp html/images/* images
 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