Skip to content

Commit

Permalink
Make sass, scss, and sass-convert work with being symlinked from othe…
Browse files Browse the repository at this point in the history
…r directories
  • Loading branch information
yinso committed Jan 11, 2013
1 parent f2ff5d2 commit b333d3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bin/sass
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# The command line Sass parser. # 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' require 'sass/exec'


opts = Sass::Exec::Sass.new(ARGV) opts = Sass::Exec::Sass.new(ARGV)
Expand Down
3 changes: 2 additions & 1 deletion bin/sass-convert
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby #!/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' require 'sass/exec'


opts = Sass::Exec::SassConvert.new(ARGV) opts = Sass::Exec::SassConvert.new(ARGV)
Expand Down
3 changes: 2 additions & 1 deletion bin/scss
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# The command line Sass parser. # 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' require 'sass/exec'


opts = Sass::Exec::Scss.new(ARGV) opts = Sass::Exec::Scss.new(ARGV)
Expand Down

0 comments on commit b333d3b

Please sign in to comment.