From 34f328de594f4df5e4f40ec1c2f5f148a2abb650 Mon Sep 17 00:00:00 2001 From: robocopAlpha <35454738+robocopAlpha@users.noreply.github.com> Date: Tue, 4 Aug 2020 13:55:02 +0300 Subject: [PATCH] Update install.sh Fix checking if the installation location is writable or not --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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