bryanwb/cookbooks — comment on commit 3d319dcab62d2012eefb681c340e820cd917911e
File: java/recipes/openjdk.rb line 44
By jtimberman:

Amusingly (to me), this didn't quite make it work on CentOS 6 (in my testing), but this does:

{,[-\.]#{arch}}

You know what they say about solving problems with regular expressions :-D.