From 281cfff69d5e00fb42f5869370ac69666ca5dd5d Mon Sep 17 00:00:00 2001 From: "amoblin@mbp" Date: Wed, 11 May 2016 11:27:14 +0800 Subject: [PATCH] update install script --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8389b65..5479eb1 100755 --- a/install.sh +++ b/install.sh @@ -75,8 +75,14 @@ cd $TMP_PATH info "Installing scripts...\n" -cp gitdisk-update /usr/local/bin -chmod 755 /usr/local/bin/gitdisk-update +if [ -d /usr/local/bin ]; then + sudo cp gitdisk-update /usr/bin + sudo chmod 755 /usr/bin/gitdisk-update +else + sudo cp gitdisk-update /usr/local/bin + sudo chmod 755 /usr/local/bin/gitdisk-update +fi + sudo cp gitdisk-update.applescript "/Library/Scripts/Folder Action Scripts" printf "${GREEN}"