diff --git a/sdk/setvars.sh b/sdk/setvars.sh index aebd914..9a41831 100644 --- a/sdk/setvars.sh +++ b/sdk/setvars.sh @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later if [[ "x$ZXUNOSDK" == x ]]; then - ZXUNOSDK=$(dirname $(realpath "$0")) + ZXUNOSDK=$(dirname $(realpath "$BASH_SOURCE")) PATH=$ZXUNOSDK/bin:$PATH export ZXUNOSDK fi