summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/libremessages4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libremessages b/src/libremessages
index 3891658..726daa5 100755
--- a/src/libremessages
+++ b/src/libremessages
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -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>
@@ -62,7 +62,7 @@ term_title() {
# Run one of the defined functions if invoked directly #
################################################################################
-if [[ "${0##*/}" = libremessages ]]; then
+if [[ "${0##*/}" == libremessages ]]; then
_libremessages_cmd=$1
shift
"$_libremessages_cmd" "$@"