Skip to content

Commit

Permalink
fix: correct wrong format of if-statment
Browse files Browse the repository at this point in the history
  • Loading branch information
sean0921 committed Feb 19, 2023
1 parent 678b448 commit 5ff4139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Grid2GMT.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5ff4139

Please sign in to comment.