Update install.sh

Fix checking if the installation location is writable or not
This commit is contained in:
robocopAlpha 2020-08-04 13:55:02 +03:00 committed by GitHub
parent 6296379a55
commit 34f328de59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ else
echo "Determined installation location: $BREWLOCATION/brewlog" echo "Determined installation location: $BREWLOCATION/brewlog"
fi fi
if [ -w /usr/local/bin ]; then if [ -w $BREWLOCATION ]; then
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/brewlog.sh' > $BREWLOCATION/brewlog curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/brewlog.sh' > $BREWLOCATION/brewlog
chmod +x $BREWLOCATION/brewlog chmod +x $BREWLOCATION/brewlog
printf " printf "