From 7ead6a4245e3ee6fc8c56674497bfd2739be68cb Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Sun, 8 Aug 2010 16:57:20 -0700 Subject: [PATCH] [Sass] Don't die if sass --watch is passed only a single file. --- lib/haml/exec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/haml/exec.rb b/lib/haml/exec.rb index 698020e96b..10c850e63b 100644 --- a/lib/haml/exec.rb +++ b/lib/haml/exec.rb @@ -462,6 +462,7 @@ def split_colon_path(path) # Whether path is likely to be meant as the destination # in a source:dest pair. def probably_dest_dir?(path) + return false unless path return false if colon_path?(path) return Dir.glob(File.join(path, "*.s[ca]ss")).empty? end