summaryrefslogtreecommitdiff
path: root/src/lib/libreblacklist
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libreblacklist')
-rwxr-xr-xsrc/lib/libreblacklist7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libreblacklist b/src/lib/libreblacklist
index 6800526..5db1a3f 100755
--- a/src/lib/libreblacklist
+++ b/src/lib/libreblacklist
@@ -1,5 +1,7 @@
-#!/bin/bash -euE
-#!/bin/bash
+#!/usr/bin/env bash
+# This may be included with or without `set -euE`
+# When run directly, it does `set -euE`
+
# Copyright (c) 2013 by Luke Shumaker <lukeshu@sbcglobal.net>
#
# This program is free software; you can redistribute it and/or modify
@@ -93,6 +95,7 @@ blacklist-get-reason() {
}
if [[ "${0##*/}" == libreblacklist ]]; then
+ set -euE
usage-outside() {
sed -n '/^# Usage:/,/()/p' "$0" |
tr '\n' '\r' | sed 's/\s*()\s*[{(]/\n/g'