Skip to content

Commit

Permalink
Return if unknown distro found.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas committed May 1, 2014
1 parent dd8ef0b commit 329f729
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/conf/linux/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ exports.post_install = function(cb) {
log('Distro detected: ' + name);
var distro = name.toLowerCase().replace(' ', '_');

if (!distros[distro])
return cb(new Error('Unknown distro: ' + distro));

unload_remove(distro, function(err) {
if (err) log(err.message);

Expand Down

0 comments on commit 329f729

Please sign in to comment.