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