Browse Source

fix darwin ….app dir check for broken symlinks

Kyle P Davis 9 years ago
parent
commit
1cabc765d1
5 changed files with 5 additions and 5 deletions
  1. 1 1
      gimmes/atom
  2. 1 1
      gimmes/eclipse-jee
  3. 1 1
      gimmes/firefox
  4. 1 1
      gimmes/google-chrome
  5. 1 1
      gimmes/sourcetree

+ 1 - 1
gimmes/atom

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	[[ -d "$HOME/Applications/Atom.app" ]]  ||  brew cask install atom
+	[[ -d "$HOME/Applications/Atom.app/" ]]  ||  brew cask install atom
 	defaults write com.github.atom ApplePressAndHoldEnabled -bool false
 else
 	if ! has atom; then

+ 1 - 1
gimmes/eclipse-jee

@@ -4,7 +4,7 @@ set -o errexit -o pipefail
 gimme java
 
 if [[ "$OS" = "Darwin" ]]; then
-	[[ -d "$HOME/Applications/Eclipse.app" ]]  ||  brew cask install eclipse-jee
+	[[ -d "$HOME/Applications/Eclipse.app/" ]]  ||  brew cask install eclipse-jee
 else
 	if ! has eclipse; then
 		URL='http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/R/eclipse-jee-mars-R-linux-gtk-x86_64.tar.gz&r=1'

+ 1 - 1
gimmes/firefox

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	[[ -d "$HOME/Applications/Firefox.app" ]]  ||  brew cask install firefox
+	[[ -d "$HOME/Applications/Firefox.app/" ]]  ||  brew cask install firefox
 else
 	has firefox  ||  gimme_pkg firefox
 fi

+ 1 - 1
gimmes/google-chrome

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	[[ -d "$HOME/Applications/Google Chrome.app" ]]  ||  brew cask install google-chrome
+	[[ -d "$HOME/Applications/Google Chrome.app/" ]]  ||  brew cask install google-chrome
 else
 	if ! has google-chrome && ! has chromium-browser; then
 		gimme_pkg chromium-browser

+ 1 - 1
gimmes/sourcetree

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	[[ -d "$HOME/Applications/SourceTree.app" ]]  ||  brew cask install sourcetree
+	[[ -d "$HOME/Applications/SourceTree.app/" ]]  ||  brew cask install sourcetree
 else
 	echo "WARN: no equivalent for when OS=$OS"
 fi