summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-05-15 20:05:40 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-15 20:16:58 +0200
commitbfd94dbf54488d815a5058476d78f0d065facefd (patch)
tree25bc74b3165abda1a83f494f76957e3c4cdde993
parent219f2f988ef3b56c3a6acaf516c53aa35070ae03 (diff)
downloadserenity-bfd94dbf54488d815a5058476d78f0d065facefd.zip
UseIt: allow sourcing from outside the Toolchain dir
-rw-r--r--Toolchain/UseIt.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Toolchain/UseIt.sh b/Toolchain/UseIt.sh
index f80ba51ce0..4008a23c73 100644
--- a/Toolchain/UseIt.sh
+++ b/Toolchain/UseIt.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR=$( dirname $( readlink -e "$0" ) )
export PATH="$DIR/Local/bin:$PATH"
export TOOLCHAIN="$DIR"
-echo "$PATH" \ No newline at end of file
+echo "$PATH"