Skip to content

Commit

Permalink
Fix Save to CSS command
Browse files Browse the repository at this point in the history
Closes appden#2
  • Loading branch information
rduenasf authored and infininight committed Feb 8, 2013
1 parent 8613369 commit 73740f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/Save to CSS.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<string>saveActiveFile</string>
<key>command</key>
<string>#!/usr/bin/env ruby
file = STDIN.read[/lessc: ([^*]+\.less)/, 1] || ENV["TM_FILEPATH"]
system("lessc --verbose \"#{file}\"")</string>
file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"]))
system("lessc --verbose \"#{file}.less\" \"#{file}.css\"")</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
Expand Down

0 comments on commit 73740f2

Please sign in to comment.