mirror of
https://github.com/dchakro/brewlog.git
synced 2026-05-17 10:12:16 -07:00
v.0.1 upload
This commit is contained in:
parent
f34edf47cc
commit
b9216cebbc
3 changed files with 177 additions and 1 deletions
15
install.sh
Normal file
15
install.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
if [ -w /usr/local/bin ]; then
|
||||
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/brewlog.sh' > /usr/local/bin/brewlog
|
||||
chmod +x /usr/local/bin/brewlog
|
||||
else
|
||||
sudo -s
|
||||
if [ -w /usr/local/bin ]; then
|
||||
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/brewlog.sh' > /usr/local/bin/brewlog
|
||||
chmod +x /usr/local/bin/brewlog
|
||||
exit
|
||||
sudo -k
|
||||
else
|
||||
echo "cannot write to /usr/local/bin".
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue