[cig-commits] commit: fix the OPTIONP for subprograms in grdmap.sh

Mercurial hg at geodynamics.org
Sun Dec 16 13:22:59 PST 2012


changeset:   160:d06d70a2e91e
tag:         tip
user:        Sylvain Barbot <sbarbot at caltech.edu>
date:        Sun Dec 16 13:22:54 2012 -0800
files:       util/grdmap.sh
description:
fix the OPTIONP for subprograms in grdmap.sh


diff -r ea093f199cc5 -r d06d70a2e91e util/grdmap.sh
--- a/util/grdmap.sh	Sun Dec 16 13:20:25 2012 -0800
+++ b/util/grdmap.sh	Sun Dec 16 13:22:54 2012 -0800
@@ -65,7 +65,7 @@ my_gmt(){
 
 	# running all required subprograms
 	for subprog in $EXTRA; do
-		if [ "" == "$U3" ]; then
+		if [ "" != "$U3" ]; then
 			OPTIONP="-p $U3"
 		else
 			OPTIONP=""



More information about the CIG-COMMITS mailing list