X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e6bee2ec0a8dfe2f3ed031024fab0239075be018..cc78cdd0b29d1d1a966b36dca357392d35597eb7:/cookbooks/nodejs/templates/default/yarn.erb diff --git a/cookbooks/nodejs/templates/default/yarn.erb b/cookbooks/nodejs/templates/default/yarn.erb index b9d3b4efd..ed0b15f04 100644 --- a/cookbooks/nodejs/templates/default/yarn.erb +++ b/cookbooks/nodejs/templates/default/yarn.erb @@ -1,3 +1,7 @@ #!/bin/sh +<% if node[:lsb][:release].to_f < 22.04 -%> exec /usr/bin/yarnpkg --ignore-engines "$@" +<% else -%> +exec /usr/bin/yarnpkg "$@" +<% end -%>