summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrille/get-hint-files6
1 files changed, 5 insertions, 1 deletions
diff --git a/trille/get-hint-files b/trille/get-hint-files
index 31d66d2..00d97b1 100755
--- a/trille/get-hint-files
+++ b/trille/get-hint-files
@@ -1,4 +1,8 @@
#!/bin/sh
-find ~release/britney/hints -maxdepth 1 -type f -a \! -iname '.*.swp' -a \! -iname '*.html' -a \! -iname 'README' -a \! -iname '#*' -printf "%f\n"
+# LC_ALL to ensure that [a-z] only matches lower-case
+#
+# We assume that account names only include lower-case and numbers
+# The hyphen is included to allow "freeze-exception" to be matched
+LC_ALL=C find /home/release/britney/hints/ -maxdepth 1 -type f -a -regex '^.*/[a-z0-9-]+$' -printf "%f\n"