Skip to content

Commit

Permalink
Fixed a long standing bug in the way dsass recurses backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Mar 6, 2012
1 parent d09411d commit eb39306
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dsass
Expand Up @@ -10,15 +10,14 @@ default_args = ['--no-cache', '-t', 'expanded', '--unix-newlines', '-l', '--debu
## SCRIPT
#####

last_pwd = Dir.pwd
while not File.exists? File.join("modules", "system", "system.info")
last_pwd = Dir.pwd
Dir.chdir('..')

if last_pwd == Dir.pwd
print "Can't find a Drupal installation in this directory.\n"
exit 1
end

last_pwd = Dir.pwd
Dir.chdir('..')
end

print "Executing SASS in " + Dir.pwd + "\n"
Expand Down

0 comments on commit eb39306

Please sign in to comment.