summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-01-18 19:36:52 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-01-18 19:39:29 -0600
commitfb4bfe229fe8697578c320cf2e80c3703dca4239 (patch)
tree1d5597d22b45f85cc4b102b971ba08e3b9416890
parentde52932c9349459e1f5ae418062261ab1f0328d7 (diff)
tb: get the absolute path for Bin_dir
-rwxr-xr-xtb/tb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tb/tb b/tb/tb
index b44df7c..0777718 100755
--- a/tb/tb
+++ b/tb/tb
@@ -15,7 +15,11 @@ if [ -n "$debug" ] ; then
set -x
fi
+# get the abolute path to the directory containing the main script
tb_BIN_DIR=$(dirname "$0")
+pushd ${tb_BIN_DIR} > /dev/null
+tb_BIN_DIR=$(pwd)
+popd > /dev/nukk
source "${tb_BIN_DIR?}/tb_internals.sh"