summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-08-27 13:31:36 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-08-27 13:31:36 (GMT)
commit77f093a9d3914100a1046f2875735aa9c3f8c9dd (patch)
treea47d8ceb4062dd5db49e2d65649e29b85c1f5c7f
parent42159886dc91b1b300bbb925e55f09f81c5266a6 (diff)
downloadmisc-fred-77f093a9d3914100a1046f2875735aa9c3f8c9dd.zip
misc-fred-77f093a9d3914100a1046f2875735aa9c3f8c9dd.tar.gz
misc-fred-77f093a9d3914100a1046f2875735aa9c3f8c9dd.tar.bz2
sassw: fix detection of main scss file
-rwxr-xr-xbin/sassw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sassw b/bin/sassw
index fac0abb..1c2210a 100755
--- a/bin/sassw
+++ b/bin/sassw
@@ -16,7 +16,7 @@ import time
filename = sys.argv[1] if len(sys.argv) > 1 else '.'
if os.path.isdir(filename):
- scss_filenames = [x for x in os.listdir(filename) if x.startswith('_') and x.endswith('.scss')]
+ scss_filenames = [x for x in os.listdir(filename) if not x.startswith('_') and x.endswith('.scss')]
if not scss_filenames:
print('Error: directory specified but no proper scss file within.', file=sys.stderr)
filename = os.path.join(filename, scss_filenames[0])