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}"