fix: Better way to recognize the clean option in the synth script
This commit is contained in:
parent
654a422ea5
commit
77e387a95b
|
@ -13,7 +13,7 @@ execute "bundle install"
|
||||||
|
|
||||||
if ARGV.empty?
|
if ARGV.empty?
|
||||||
execute "echo a | bundle exec bin/generate-api gen generated --from-discovery --no-preferred-only --names-out=#{DIR}/api_names_out.yaml"
|
execute "echo a | bundle exec bin/generate-api gen generated --from-discovery --no-preferred-only --names-out=#{DIR}/api_names_out.yaml"
|
||||||
elsif ARGV == ["--clean"]
|
elsif ARGV == ["--clean"] || ARGV == ["clean"]
|
||||||
execute "bundle exec bin/generate-api gen generated --clean"
|
execute "bundle exec bin/generate-api gen generated --clean"
|
||||||
elsif ARGV.size == 2
|
elsif ARGV.size == 2
|
||||||
api, version = ARGV
|
api, version = ARGV
|
||||||
|
|
Loading…
Reference in New Issue