From df2eabe8072e1273159eb07f9875145a6ed7faf7 Mon Sep 17 00:00:00 2001 From: "amoblin@mbp" Date: Wed, 11 May 2016 13:36:38 +0800 Subject: [PATCH] update install script --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 5479eb1..c83ac92 100755 --- a/install.sh +++ b/install.sh @@ -75,14 +75,12 @@ cd $TMP_PATH info "Installing scripts...\n" -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 +if [ ! -d /usr/local/bin ]; then + sudo mkdir /usr/local/bin fi +sudo install -m 755 gitdisk-update /usr/local/bin/gitdisk-update + sudo cp gitdisk-update.applescript "/Library/Scripts/Folder Action Scripts" printf "${GREEN}"