bin/ayadn in ayadn-0.6.2 vs bin/ayadn in ayadn-0.6.3
- old
+ new
@@ -203,13 +203,15 @@
when "commands", "usage"
puts $tools.list_of_commands
when "webhelp"
puts $tools.helpScreen
- begin
- $tools.startBrowser("https://github.com/ericdke/ayadn#ayadn")
- rescue
- puts "\nFailed to start a browser automatically. Please visit ".cyan + "https://github.com/ericdke/ayadn#ayadn".magenta
+ begin
+ if $tools.ayadn_configuration[:platform] =~ /darwin/
+ $tools.startBrowser("https://github.com/ericdke/ayadn#ayadn")
+ else
+ puts "\nCan't start a browser automatically. Please visit ".cyan + "https://github.com/ericdke/ayadn#ayadn".magenta
+ end
end
when "options"
client.ayadn_show_options