-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from retrohacker/added-manjaro-linux-os
Added manjaro linux os
- Loading branch information
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var releaseRegex = /distrib_release=(.*)/ | ||
var codenameRegex = /distrib_codename=(.*)/ | ||
|
||
module.exports = function ubuntuCustomLogic (os, file, cb) { | ||
var codename = file.match(codenameRegex) | ||
if (codename && codename.length === 2) os.codename = codename[1] | ||
var release = file.match(releaseRegex) | ||
if (release && release.length === 2) os.release = release[1] | ||
cb(null, os) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters