tdlm / mac-os-self-destruct

Deletes files/folders in macOS based on a time specified in tags.
GNU General Public License v2.0
245 stars 14 forks source link

Can't Install, Permission Denied #7

Open gkrizek opened 10 years ago

gkrizek commented 10 years ago

Can't install because I get a Permission Denied error. It returns:

Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights

Running OS X 10.10 (Yosemite Beta), that could be an issue.

tdlm commented 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.

gkrizek commented 10 years ago

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

tdlm commented 10 years ago

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.

tdlm commented 10 years ago

Assuming that works, I'll just add it to the script.

gkrizek commented 10 years ago

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!

tdlm commented 10 years ago

@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.

tdlm commented 7 years ago

@gkrizek Please try the installation again as I have made some updates to the script. I'd appreciate your feedback.