From 5ff4139d842500bdbeb8e33b286ddf9f0968b60f Mon Sep 17 00:00:00 2001 From: Sean Ho Date: Mon, 20 Feb 2023 00:54:51 +0800 Subject: [PATCH] fix: correct wrong format of if-statment --- src/Grid2GMT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grid2GMT.c b/src/Grid2GMT.c index 1428566..a4901a1 100644 --- a/src/Grid2GMT.c +++ b/src/Grid2GMT.c @@ -1580,7 +1580,7 @@ int GenGridViewGMT(GridDesc* pgrid, char cviewmode, char cdatatype, contour_int = GetContourInterval((double) grid_value_min, (double) grid_value_max, NUM_COLORS, &nstep); fprintf(fp_gmt, - "if [-f Grid2GMT.cpt ]; then\n"); + "if [ -f Grid2GMT.cpt ]; then\n"); fprintf(fp_gmt, " \\cp Grid2GMT.cpt %s.cpt\n", fn_root_output); fprintf(fp_gmt,