diff --git a/install.sh b/install.sh index 3a41e48..81bf3b6 100644 --- a/install.sh +++ b/install.sh @@ -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 \ No newline at end of file +fi