rive-app / rive-cpp

C++ runtime for Rive
MIT License
278 stars 42 forks source link

Improved file path compatibility #372

Open benediktadams opened 3 weeks ago

benediktadams commented 3 weeks ago

The line

source $(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)/${machine}/config_directories.sh

in rive-cpp/dependencies/config_directories.sh didn't work, when the library was cloned to a file path containing spaces.

By first writing the script_dir path to a variable and using that for the source call, we can support paths with spaces.