Skip to content

Commit

Permalink
[Sass] Don't die if sass --watch is passed only a single file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Aug 8, 2010
1 parent 7ab6454 commit 7ead6a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/haml/exec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7ead6a4

Please sign in to comment.