summaryrefslogtreecommitdiffstats
path: root/bridge/bin/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/bin/bridge')
-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" "$@"