summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/libremessages8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libremessages b/src/libremessages
index 68badb8..756e19a 100755
--- a/src/libremessages
+++ b/src/libremessages
@@ -1,3 +1,4 @@
+#!/bin/bash
# Copyright (c) 2006-2010 Pacman Development Team <pacman-dev@archlinux.org>
# Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
# Copyright (c) 2005 by Aurelien Foret <orelien@chez.com>
@@ -105,3 +106,10 @@ in_array() {
return 1 # Not Found
}
+
+if [[ "${0##*/}" = libremessages ]]; then
+ _libremessages_cmd=$1
+ shift
+ "$_libremessages_cmd" "$@"
+ unset _libremessages_cmd
+fi