mac-os-self-destruct icon indicating copy to clipboard operation
mac-os-self-destruct copied to clipboard

Not working on Yosemite

Open satan87 opened this issue 10 years ago • 9 comments

Hello, The dl is working fine but not the install :

Nicolass-Mac-Pro:os-x-self-destruct nicolas$ ./self-destruct.sh --install Copying self to /usr/local/bin/self-destruct cp: /usr/local/bin/self-destruct: No such file or directory chmod: /usr/local/bin/self-destruct: No such file or directory Plist found. Unloading before install... Generating plist for user and installing: /Users/nicolas/Library/LaunchAgents/com.github.tdlm.os-x-self-destruct.plist Installation complete!

if i tag manually and run manually it works, but the tag list is not updated and the run is not being executed by itself

thanks, Nicolas

satan87 avatar Oct 01 '14 05:10 satan87

I am having the same exact issue. I tried to fix the issue by manually creating a /usr/local/bin folder (which made the no such file error disappear) Andrews-MacBook-Air:~ AndrewGodinez$ ./os-x-self-destruct/self-destruct.sh --install Copying self to /usr/local/bin/self-destruct Plist found. Unloading before install... Generating plist for user and installing: /Users/AndrewGodinez/Library/LaunchAgents/com.github.tdlm.os-x-self-destruct.plist Installation complete!

But I am still unable to get the files to delete without manually running self-destruct.sh.

Andrew30003 avatar Oct 02 '14 04:10 Andrew30003

@satan87 and @Andrew30003 I originally had this working with crontab. If you're familiar with crontab, you can try adding the line to crontab while we figure the plist part of it out:

* * * * * /usr/local/bin/self-destruct

tdlm avatar Oct 02 '14 21:10 tdlm

I tried adding the line, but still a no go.

Andrew30003 avatar Oct 03 '14 20:10 Andrew30003

I am having the same problem. It does not work on Yosemite. I have tried add the crontab, but so far I didn't worked out.

MalcolmK avatar Dec 02 '14 14:12 MalcolmK

@MalcolmK Hmm, you may want to try an older version. If you need help with that, let me know. There have been some serious changes since then.

tdlm avatar Dec 04 '14 22:12 tdlm

Any update concerning Yosemite ? Same issue here, won't run by itself. Run smoothly manually.

ghost avatar Apr 01 '15 13:04 ghost

@roylockhart I haven't had a chance to work on this, but did you try using an older version?

tdlm avatar Apr 07 '15 01:04 tdlm

@satan87 @0xroy I've made updates to the script of late. I'd appreciate it if you could all test it to give feedback on errors. Hopefully we can close some of these issues.

tdlm avatar Dec 06 '16 04:12 tdlm

Just noticed your update ! I tested it on Sierra, and have some feedback :
For some reason, the job outputs an Error 78 because the command is '/usr/local/bin/self-destruct' --run.
I modified it to /usr/local/bin/self-destruct --run and it ran without any problem :+1:

ghost avatar Dec 17 '16 10:12 ghost