Commit c8288037 authored by Alex Smith's avatar Alex Smith

fix: Use cd/pwd for script path to correctly handle symlinks

parent 1b0c6c05
......@@ -34,8 +34,8 @@ then
exit 1
fi
PORT_SCRIPTS_PATH="$(dirname "$(realpath "$0")")"
PORT_WINE_PATH="$(realpath "$PORT_SCRIPTS_PATH/../..")"
PORT_SCRIPTS_PATH="$(cd "$(dirname "$0")" && pwd)"
PORT_WINE_PATH="$(dirname "$(dirname "$PORT_SCRIPTS_PATH")")"
export PORT_SCRIPTS_PATH PORT_WINE_PATH
# shellcheck source=/dev/null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment