In /usr/bin/gdal-config line 8:
CONFIG_OGR_ENABLED=yes
^----------------^ SC2034: CONFIG_OGR_ENABLED appears unused. Verify use (or export if used externally).


In /usr/bin/gdal-config line 26:
	exit $1
             ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
	exit "$1"


In /usr/bin/gdal-config line 35:
    echo $CONFIG_LIBS
         ^----------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    echo "$CONFIG_LIBS"


In /usr/bin/gdal-config line 39:
    echo $CONFIG_DEP_LIBS
         ^--------------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    echo "$CONFIG_DEP_LIBS"


In /usr/bin/gdal-config line 67:
    echo $CONFIG_FORMATS
         ^-------------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    echo "$CONFIG_FORMATS"

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- CONFIG_OGR_ENABLED appears unused...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...