summaryrefslogtreecommitdiffstats
path: root/bridge/bin
diff options
context:
space:
mode:
authorkrebs <krebs@fuerkrebs>2011-10-13 13:20:02 -0400
committerkrebs <krebs@fuerkrebs>2011-10-13 13:20:02 -0400
commit6caf0d1c502ba9eb6d41aa9a80cb8a350164846d (patch)
tree28237066c93656fe75b2fcc7fb1eec0a2b800888 /bridge/bin
parentfa7213811c2c77b9f2097c11c8a072265d8a3ac2 (diff)
parent1cff2a9d548336ddcd8a2d732ed2cd348c8e6b79 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'bridge/bin')
-rwxr-xr-xbridge/bin/bridge11
1 files changed, 9 insertions, 2 deletions
diff --git a/bridge/bin/bridge b/bridge/bin/bridge
index 6ae4ab11..33cf4577 100755
--- a/bridge/bin/bridge
+++ b/bridge/bin/bridge
@@ -1,5 +1,12 @@
#! /bin/sh
+#
+# Interface to the bridge commands.
+#
+# See commands below $bindir
+#
set -euf
-command="$1"; shift
+
bindir="$(dirname $(readlink -f "$0"))/../lib/bridge/bin"
-exec "$bindir/$command" "$@"
+cmd="$bindir/$1"; shift
+
+exec "$cmd" "$@"