Permalink
Browse files

Make sass, scss, and sass-convert work with being symlinked from othe…

…r directories
  • Loading branch information...
1 parent f2ff5d2 commit b333d3b022a1feb08e4523518e69721dde822c25 @yinso yinso committed Jan 11, 2013
Showing with 6 additions and 3 deletions.
  1. +2 −1 bin/sass
  2. +2 −1 bin/sass-convert
  3. +2 −1 bin/scss
View
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
# The command line Sass parser.
-require File.dirname(__FILE__) + '/../lib/sass'
+THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
+require File.dirname(THIS_FILE) + '/../lib/sass'
require 'sass/exec'
opts = Sass::Exec::Sass.new(ARGV)
View
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../lib/sass'
+THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
+require File.dirname(THIS_FILE) + '/../lib/sass'
require 'sass/exec'
opts = Sass::Exec::SassConvert.new(ARGV)
View
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
# The command line Sass parser.
-require File.dirname(__FILE__) + '/../lib/sass'
+THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
+require File.dirname(THIS_FILE) + '/../lib/sass'
require 'sass/exec'
opts = Sass::Exec::Scss.new(ARGV)

0 comments on commit b333d3b

Please sign in to comment.