]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nodejs/templates/default/yarn.erb
Merge remote-tracking branch 'github/pull/510'
[chef.git] / cookbooks / nodejs / templates / default / yarn.erb
index b9d3b4efd0542a5387dad434fc65d21d4f1644c8..ed0b15f04897f106c808cdcb05c7f9da44204795 100644 (file)
@@ -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 -%>