Permission denied while installing script
When try to install from terminal, I tried both sudo and without sudo.
OS: Macos Sierra 10.12.6.
MacBook-Pro:~ macbook$ sudo curl -sSL https://raw.github.com/roubles/maclock/master/webinstall.sh | bash Downloading script from: https://raw.githubusercontent.com/roubles/maclock/master/scripts/maclock... bash: line 38: /usr/local/bin/maclock: Permission denied Error installing script.
I cannot recreate the issue.
Just create this file in /usr/local/bin/maclock on your system.
And if, /usr/local/bin is in your PATH, you should be able to call it at the terminal.
$ maclock
I created the file as you said but when I try $ maclock it also gives a permission error to run. I don't understand why but can't get it work.
The script basically calls
open -a ScreenSaverEngine
try that on the console and see what you get.
open -a ScreenSaverEngine, that command is working properly.
I was changed chmod of file maclock to 0755, now working very well.
thanks