fix: Better way to recognize the clean option in the synth script

This commit is contained in:
Daniel Azuma 2020-10-19 02:03:57 +00:00
parent 654a422ea5
commit 77e387a95b
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ execute "bundle install"
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"
elsif ARGV == ["--clean"]
elsif ARGV == ["--clean"] || ARGV == ["clean"]
execute "bundle exec bin/generate-api gen generated --clean"
elsif ARGV.size == 2
api, version = ARGV