Permalink
Browse files

Make sass work when symlinked by encap.

  • Loading branch information...
1 parent d8ae9b1 commit 1deea29693992d31d84786a695d2a1bb4f70a14b @pwnall pwnall committed Jun 5, 2013
Showing with 15 additions and 3 deletions.
  1. +5 −1 bin/sass
  2. +5 −1 bin/sass-convert
  3. +5 −1 bin/scss
View
@@ -2,7 +2,11 @@
# The command line Sass parser.
THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
-require File.dirname(THIS_FILE) + '/../lib/sass'
+begin
+ require File.dirname(THIS_FILE) + '/../lib/sass'
+rescue LoadError
+ require 'sass'
+end
require 'sass/exec'
opts = Sass::Exec::Sass.new(ARGV)
View
@@ -1,7 +1,11 @@
#!/usr/bin/env ruby
THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
-require File.dirname(THIS_FILE) + '/../lib/sass'
+begin
+ require File.dirname(THIS_FILE) + '/../lib/sass'
+rescue LoadError
+ require 'sass'
+end
require 'sass/exec'
opts = Sass::Exec::SassConvert.new(ARGV)
View
@@ -2,7 +2,11 @@
# The command line Sass parser.
THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
-require File.dirname(THIS_FILE) + '/../lib/sass'
+begin
+ require File.dirname(THIS_FILE) + '/../lib/sass'
+rescue LoadError
+ require 'sass'
+end
require 'sass/exec'
opts = Sass::Exec::Scss.new(ARGV)

0 comments on commit 1deea29

Please sign in to comment.