Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
add a more effective means of determining primary package manager (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrichardson committed Aug 22, 2018
1 parent b336635 commit 5539781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export class Updater {
}

public detectVersion(): void {
exec('whereis rpm', (err, stdout) => {
if (stdout.indexOf('bin') !== -1) {
exec('cat /etc/redhat-release', (err, stdout) => {
if (err === null) {
this.packageType = PackageType.RedHat;
} else {
this.packageType = PackageType.Debian;
Expand Down

0 comments on commit 5539781

Please sign in to comment.