Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Fixed Save to CSS command. Closes appden#2
Browse files Browse the repository at this point in the history
  • Loading branch information
rduenasf committed Nov 2, 2011
1 parent a202dd9 commit 8d8d5dd
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 8d8d5dd

Please sign in to comment.