Skip to content

Commit

Permalink
🔧 Support alpha and beta versions in version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Feb 18, 2022
1 parent 4a82e7f commit 0886007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.js
Expand Up @@ -71,6 +71,10 @@ function shellVersionIsAtLeast(major, minor) {
}

if (GS_MAJOR == major) {
if (minor == 'alpha') return true;
if (minor == 'beta' && GS_MINOR == 'alpha') return false;
if (minor == 'beta' && GS_MINOR == 'beta') return true;

return GS_MINOR >= minor;
}

Expand Down

0 comments on commit 0886007

Please sign in to comment.