X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/98de681e4711ad3bf5526e511002c8f0e91860a8..e027d5fc5ce3dc381673faf17ca827ae11c0a1f7:/bin/yarn diff --git a/bin/yarn b/bin/yarn index 38f278aa0..99e5e7728 100755 --- a/bin/yarn +++ b/bin/yarn @@ -1,11 +1,9 @@ #!/usr/bin/env ruby APP_ROOT = File.expand_path("..", __dir__) Dir.chdir(APP_ROOT) do - begin - exec "yarnpkg", *ARGV - rescue Errno::ENOENT - warn "Yarn executable was not detected in the system." - warn "Download Yarn at https://yarnpkg.com/en/docs/install" - exit 1 - end + exec "yarnpkg", *ARGV +rescue Errno::ENOENT + warn "Yarn executable was not detected in the system." + warn "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 end