v.0.1 upload

This commit is contained in:
robocopAlpha 2020-08-04 00:37:44 +03:00
parent f34edf47cc
commit b9216cebbc
3 changed files with 177 additions and 1 deletions

15
install.sh Normal file
View 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