Skip to content

Commit

Permalink
Merge pull request #3 from node-migrator-bot/clean
Browse files Browse the repository at this point in the history
Awesome. Thanks mate.
  • Loading branch information
tomas committed Jul 9, 2012
2 parents 2798d12 + cac4a0d commit 557c825
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/linux/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var copy_init_script = function(distro, callback){

var full_path = get_init_script_path(distro);

path.exists(full_path, function(exists){
fs.exists(full_path, function(exists){
if(exists) return callback(new Error("File already exists!"))

var template = fs.readFileSync(path.resolve(__dirname + "/" + init_script_name));
Expand Down
4 changes: 2 additions & 2 deletions scripts/mac/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ exports.post_install = function(callback){

console.log('Setting up launchd script...');

path.exists(launchd_plist_path, function(exists){
fs.exists(launchd_plist_path, function(exists){

if(exists){
console.log("LaunchDaemon plist file already exists. Skipping...");
Expand All @@ -91,7 +91,7 @@ exports.post_install = function(callback){
exports.pre_uninstall = function(callback){

console.log('Removing launchd script...');
path.exists(launchd_plist_path, function(exists){
fs.exists(launchd_plist_path, function(exists){

if(!exists){
console.log("LaunchDaemon plist file already removed. Skipping...");
Expand Down
2 changes: 1 addition & 1 deletion scripts/post_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ run('install_deps.js', function(err){

// make sure the executable exists before setting up any triggers

path.exists(prey_bin, function(exists){
fs.exists(prey_bin, function(exists){

if(!exists){
var msg = "We couldn't found the Prey executable in " + prey_bin;
Expand Down

0 comments on commit 557c825

Please sign in to comment.