From fb46ae4de02a4503a8e4f9956b03acd8b74369bb Mon Sep 17 00:00:00 2001 From: yzhoubk <30507097+yzhoubk@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:00:45 -0800 Subject: [PATCH] DEV-443 (#18) --- lib/gingr/geoserver_publisher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gingr/geoserver_publisher.rb b/lib/gingr/geoserver_publisher.rb index 58af918..dbe7173 100644 --- a/lib/gingr/geoserver_publisher.rb +++ b/lib/gingr/geoserver_publisher.rb @@ -69,7 +69,7 @@ def batch_publish(filenames) def publish(filename) id = File.basename(filename, '.*') file_path = remote_filepath(id, filename) - if File.extname(filename).casecmp('.shp') + if File.extname(filename).casecmp('.shp').zero? publish_shapefile(file_path, id) else publish_geotiff(file_path, id)