diff --git a/vxmicro-env.bash b/vxmicro-env.bash index 60bf7d7ed60..42a142bd014 100644 --- a/vxmicro-env.bash +++ b/vxmicro-env.bash @@ -9,7 +9,7 @@ fi # run (if it exists) by this script. # identify OS source tree root directory -export VXMICRO_BASE=$(pwd) +export VXMICRO_BASE=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) # prepend VxMicro build system tools to PATH, if not already present vxmicro_linux_bin=${VXMICRO_BASE}/host/x86-linux2/bin