Skip to content

Commit

Permalink
Updates update notifier api
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Sep 9, 2014
1 parent 9c2e119 commit 59dc31a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ module.exports = function(grunt) {
options: {
stdout: true,
stderr: true
}
}
},

theme_iterm: {
Expand Down
6 changes: 4 additions & 2 deletions bin/dotfiles
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ if (argv.length) {
});
}
else {
var pkg = require('../package.json');

// If no arguments were passed, check for updates.
var updateNotifier = require('update-notifier'),
notifier = updateNotifier({
packagePath: '../package.json',
updateCheckInterval: 1000 * 60 * 60 * 24 // 1 day
packageName: pkg.name,
packageVersion: pkg.version
});

if (notifier.update) {
Expand Down

0 comments on commit 59dc31a

Please sign in to comment.