X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e6bee2ec0a8dfe2f3ed031024fab0239075be018..3a55f93736b4fce4cf3702f51fc4f462723b7ac6:/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 -%>