Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…r directories
  • Loading branch information...
commit b333d3b022a1feb08e4523518e69721dde822c25 1 parent f2ff5d2
@yinso yinso authored
Showing with 6 additions and 3 deletions.
  1. +2 −1  bin/sass
  2. +2 −1  bin/sass-convert
  3. +2 −1  bin/scss
View
3  bin/sass
@@ -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
3  bin/sass-convert
@@ -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
3  bin/scss
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.