Skip to content

Commit

Permalink
follow symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamil Bou Kheir committed Nov 16, 2013
1 parent 0042bf1 commit 48b6d4b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Ruby/lib/terminal_notifier/guard/failed.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
module TerminalNotifier
module Guard
module Failed
<<<<<<< Updated upstream
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
=======
terminal_notifier_path = `which terminal-notifier`
if File.symlink? terminal_notifier_path
terminal_notifier_path = File.expand_path(File.readlink(terminal_notifier_path), __FILE__)
end

BIN_PATH = terminal_notifier_path.empty? ?
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
:
terminal_notifier_path
>>>>>>> Stashed changes
end
end
end
12 changes: 12 additions & 0 deletions Ruby/lib/terminal_notifier/guard/notify.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
module TerminalNotifier
module Guard
module Notify
<<<<<<< Updated upstream
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
=======
terminal_notifier_path = `which terminal-notifier`
if File.symlink? terminal_notifier_path
terminal_notifier_path = File.expand_path(File.readlink(terminal_notifier_path), __FILE__)
end

BIN_PATH = terminal_notifier_path.empty? ?
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
:
terminal_notifier_path
>>>>>>> Stashed changes
end
end
end
12 changes: 12 additions & 0 deletions Ruby/lib/terminal_notifier/guard/pending.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
module TerminalNotifier
module Guard
module Pending
<<<<<<< Updated upstream
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
=======
terminal_notifier_path = `which terminal-notifier`
if File.symlink? terminal_notifier_path
terminal_notifier_path = File.expand_path(File.readlink(terminal_notifier_path), __FILE__)
end

BIN_PATH = terminal_notifier_path.empty? ?
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
:
terminal_notifier_path
>>>>>>> Stashed changes
end
end
end
12 changes: 12 additions & 0 deletions Ruby/lib/terminal_notifier/guard/success.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
module TerminalNotifier
module Guard
module Success
<<<<<<< Updated upstream
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
=======
terminal_notifier_path = `which terminal-notifier`
if File.symlink? terminal_notifier_path
terminal_notifier_path = File.expand_path(File.readlink(terminal_notifier_path), __FILE__)
end

BIN_PATH = terminal_notifier_path.empty? ?
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
:
terminal_notifier_path
>>>>>>> Stashed changes
end
end
end

0 comments on commit 48b6d4b

Please sign in to comment.