Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! I fixed some code for you! #3

Merged
merged 1 commit into from
Jul 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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