X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e6bee2ec0a8dfe2f3ed031024fab0239075be018..558691451db4f029698b996d7df8c8cf272b3b8b:/cookbooks/nodejs/templates/default/yarn.erb?ds=sidebyside 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 -%>