aboutsummaryrefslogtreecommitdiffstats
path: root/combine.sh
diff options
context:
space:
mode:
Diffstat (limited to 'combine.sh')
-rwxr-xr-xcombine.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/combine.sh b/combine.sh
index bea824b..53cf7fe 100755
--- a/combine.sh
+++ b/combine.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-contents="$(cat slack/*.py slack.py | grep -Ev '^from (\.|slack)')"
+contents="$(cat slack/*.py slack.py | grep -Ev '^from slack[. ]')"
echo "$contents" | grep '^from __future__' | sort -u > combined.py
echo "$contents" | grep -v '^from __future__' | grep -E '^(import|from)' | sort -u >> combined.py