Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rye/box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def initialize(host='localhost', opts={})
@rye_password_prompt = @rye_opts.delete(:password_prompt)

# Store the state of the terminal
@rye_stty_save = `stty -g`.chomp rescue nil
@rye_stty_save = `stty -g`.chomp if STDIN.tty? rescue nil

unless @rye_templates.nil?
require @rye_templates.to_s # should be :erb
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rye/hop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def initialize(host, opts={})
@rye_templates = @rye_opts.delete(:templates)

# Store the state of the terminal
@rye_stty_save = `stty -g`.chomp rescue nil
@rye_stty_save = `stty -g`.chomp if STDIN.tty? rescue nil

unless @rye_templates.nil?
require @rye_templates.to_s # should be :erb
Expand Down