Open gkrizek opened 10 years ago
@gkrizek I've tested it on 10.10 (I'm running it) and it works fine.
Could you give it another try?
If that doesn't work, try cloning over HTTPS:
git clone https://github.com/tdlm/os-x-self-destruct.git
Let me know if that works.
Cloning over HTTPS did work for cloning the actual file. Now experiencing a problem installing.
This is exactly what it returns after running the install line:
AppleUser-MacBook-Pro-2:os-x-self-destruct AppleUser$ cd os-x-self-destruct && ./self-destruct.sh --install
Copying self to /Users/AppleUser/bin/self-destruct.sh
cp: /Users/AppleUser/bin/self-destruct.sh: No such file or directory
chmod: /Users/AppleUser/bin/self-destruct.sh: No such file or directory
Plist found. Unloading before install...
Generating plist for user and installing: /Users/AppleUser/Library/LaunchAgents/com.github.tdlm.os-x-self-destruct.plist
Installation complete
Sounds like your user lacks a ~/bin/ directory. Can you verify that?
$ ls -lh ~/bin/
If that's missing, you'll probably have to create it and try the install script again. In fact, I'd try running the uninstall and then the install.
Assuming that works, I'll just add it to the script.
Alright, I had no Bin folder and then I created one. Now experiencing a new error. It's actually the same thing @satan87 is getting in his issue. When I try to run the install line I get back:
Copying self to /usr/local/bin/self-destruct
cp: /usr/local/bin/self-destruct: Permission denied
chmod: /usr/local/bin/self-destruct: No such file or directory
Plist found. Unloading before install...
Generating plist for user and installing: /Users/AppleUser/Library/LaunchAgents/com.github.tdlm.os-x-self-destruct.plist
Installation complete!
@gkrizek Agh, I may have to detect which bin the user actually has before trying to copy the file there. I think that makes more sense than trying to copy it to some "default" location. Thanks for the feedback and for your patience.
@gkrizek Please try the installation again as I have made some updates to the script. I'd appreciate your feedback.
Can't install because I get a Permission Denied error. It returns:
Running OS X 10.10 (Yosemite Beta), that could be an issue.