summaryrefslogtreecommitdiff
path: root/src/lib/libremessages
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libremessages')
-rwxr-xr-xsrc/lib/libremessages7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libremessages b/src/lib/libremessages
index 46a45fb..c6d08e2 100755
--- a/src/lib/libremessages
+++ b/src/lib/libremessages
@@ -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) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
# Copyright (c) 2006-2010 Pacman Development Team <pacman-dev@archlinux.org>
# Copyright (c) 2005 by Aurelien Foret <orelien@chez.com>
@@ -122,6 +124,7 @@ term_title() {
################################################################################
if [[ "${0##*/}" == libremessages ]]; then
+ set -euE
_libremessages_cmd=$1
shift
"$_libremessages_cmd" "$@"