Fix WORKSPACE path

Link to full (not relative) path
This commit is contained in:
Martin Blazik
2020-09-14 12:31:18 +02:00
parent 88605b6fbc
commit d37b8677b6

4
bashrc
View File

@@ -1,5 +1,6 @@
if [[ $0 != $BASH_SOURCE ]]; then
WORKSPACE=$(dirname $BASH_SOURCE)
WORKSPACE_PATH=$(realpath $BASH_SOURCE)
export WORKSPACE=$(dirname $WORKSPACE_PATH)
for rc_file in $WORKSPACE/rc/*.rc; do
source $rc_file
@@ -10,3 +11,4 @@ if [[ $0 != $BASH_SOURCE ]]; then
else
echo "not sourced"
fi