Skip to content

Commit

Permalink
Fix #8 Support SLE
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed May 8, 2019
1 parent 1375397 commit df899a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Support SLE [#8](https://github.com/openSUSE-zh/opi/issues/8)

## [0.2.0]

### Added
Expand Down
2 changes: 2 additions & 0 deletions opi
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ sub get_distribution {
return 'openSUSE:Factory';
} elsif ($name eq 'openSUSE Leap') {
return 'openSUSE:Leap:' . $version;
} elsif (substr($name, 0, 3) eq 'SLE') {
return 'SLE' . $version;
} else {
print "Your distribution $name $version is not supported.\n";
exit 1;
Expand Down

0 comments on commit df899a1

Please sign in to comment.