Error when running installed script
Closed this issue · 2 comments
smurthas commented
When running:
curl https://raw.github.com/pib/lockerbox/master/lockerbox.sh | sh
I get the following error(s):
lockerbox-test: curl https://raw.github.com/pib/lockerbox/master/lockerbox.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4723 100 4723 0 0 5409 0 --:--:-- --:--:-- --:--:-- 37784
sh: line 47: wget: command not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58480 100 58480 0 0 39871 0 0:00:01 0:00:01 --:--:-- 109k
Downloaded http://github.com/pib/lockerbox/blob/master/lockerbox.sh.
sh: line 63: /Users/Simon/dev/lockerbox-test/lockerbox/lockerbox.sh: Permission denied
sh: line 63: exec: /Users/Simon/dev/lockerbox-test/lockerbox/lockerbox.sh: cannot execute: Unknown error: 0
probably just needs a:
chmod 0755 lockerbox.sh
to make it executable.
also:
wget: command not found
looks innocuous, but could probably be hidden.
pib commented
Yep, a chmod should do the trick.
Also, yeah, it tries wget first, and then uses curl if that's not found.
pib commented
Ok, it's now doing a chmod, as well as properly checking the name so it doesn't go into an endless loop of recursive /lockerbox/lockerbox/lockerbox directories...