mirror of
https://github.com/dchakro/brewlog.git
synced 2026-05-17 10:12:16 -07:00
Update install.sh
Fix checking if the installation location is writable or not
This commit is contained in:
parent
6296379a55
commit
34f328de59
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ else
|
|||
echo "Determined installation location: $BREWLOCATION/brewlog"
|
||||
fi
|
||||
|
||||
if [ -w /usr/local/bin ]; then
|
||||
if [ -w $BREWLOCATION ]; then
|
||||
curl -sSL 'https://raw.githubusercontent.com/robocopAlpha/brewlog/master/brewlog.sh' > $BREWLOCATION/brewlog
|
||||
chmod +x $BREWLOCATION/brewlog
|
||||
printf "
|
||||
|
|
@ -35,4 +35,4 @@ else
|
|||
if [ "$flag" -eq "1" ]; then
|
||||
shopt -s nocasematch
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue