Surround __DIR__ with quotes to handle paths with spaces (#114)

This commit is contained in:
Sijawusz Pur Rahnama 2019-09-14 17:31:55 +02:00 committed by Vitalii Elenhaupt
parent 504f537208
commit d418fb0ef7

View file

@ -24,7 +24,7 @@ require "./ameba/formatter/*"
module Ameba
extend self
VERSION = {{ `shards version #{__DIR__}`.chomp.stringify }}
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
# Initializes `Ameba::Runner` and runs it.
# Can be configured via `config` parameter.