lib/kdwatch-app.rb in kdwatch-0.4.0 vs lib/kdwatch-app.rb in kdwatch-0.4.1
- old
+ new
@@ -7,10 +7,10 @@
# require "guard-livereload"
require "rack-livereload"
require "guard"
require "sinatra"
require "kramdown-rfc2629"
-ENV["KDRFC_PREPEND"] = "time"
+ENV["KDRFC_PREPEND"] = "time" if system("time", "true", err: "/dev/null")
require "kramdown-rfc/kdrfc-processor"
require "net/http/persistent"
host = ENV["KDWATCH_HOST"]
port = ENV["KDWATCH_PORT"]