From eb393063a0bb4689801fa0c62f5908a19a0b8157 Mon Sep 17 00:00:00 2001 From: Matthew Scharley Date: Tue, 6 Mar 2012 12:26:18 +1100 Subject: [PATCH] Fixed a long standing bug in the way dsass recurses backwards --- dsass | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dsass b/dsass index f7aba10..1b2ea12 100755 --- a/dsass +++ b/dsass @@ -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"