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)