From e3032aa0fdb3f45cde167abea06b2827c9eb1d6b Mon Sep 17 00:00:00 2001 From: Ivan Santos Date: Sun, 6 Apr 2014 23:21:41 -0700 Subject: [PATCH 1/2] Fix #39 - Fix installation breaks when Alfred and iTerm2 is not installed --- Gruntfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index d94787c..739dd1b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -325,11 +325,17 @@ module.exports = function(grunt) { }, theme_alfred: { - command: 'open <%= config.themes.path_dracula %>/alfred/Dracula.alfredappearance' + command: '[ -d "/Applications/Alfred 2.app" ] && open <%= config.themes.path_dracula %>/alfred/Dracula.alfredappearance || echo "Alfred App is not installed"', + options: { + stdout: true + } }, theme_iterm: { - command: 'open <%= config.themes.path_dracula %>/iterm/Dracula.itermcolors' + command: '[ -d "/Applications/iTerm.app" ] && open <%= config.themes.path_dracula %>/iterm/Dracula.itermcolors || echo "iTerm App is not installed"', + options: { + stdout: true + } }, node_latest: { From ad820b29d7311face7a2fd106eb6726df6fe0d8b Mon Sep 17 00:00:00 2001 From: Ivan Santos Date: Mon, 7 Apr 2014 06:44:19 -0700 Subject: [PATCH 2/2] Add stderr for grunt shell task --- Gruntfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 739dd1b..ec48ae9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -327,14 +327,16 @@ module.exports = function(grunt) { theme_alfred: { command: '[ -d "/Applications/Alfred 2.app" ] && open <%= config.themes.path_dracula %>/alfred/Dracula.alfredappearance || echo "Alfred App is not installed"', options: { - stdout: true + stdout: true, + stderr: true } }, theme_iterm: { command: '[ -d "/Applications/iTerm.app" ] && open <%= config.themes.path_dracula %>/iterm/Dracula.itermcolors || echo "iTerm App is not installed"', options: { - stdout: true + stdout: true, + stderr: true } },