mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-04 17:02:05 +01:00
The bug fix https://github.com/flatcar-linux/coreos-overlay/pull/1129 caused a regression that Github Actions cannot determine a correct $VERSION_OLD if the old ebuild file has a suffix like `-r1`. We need to create a function to get a correct ebuild file name, by falling back to the most similar name, in case the expected ebuild file does not exist.