fix: quote variable in basename call to handle paths with spaces

parent ea6cdcb9
...@@ -340,7 +340,7 @@ else pw_download_libs ...@@ -340,7 +340,7 @@ else pw_download_libs
fi fi
if [[ -n $portwine_exe ]] \ if [[ -n $portwine_exe ]] \
&& [[ "$(basename ${portwine_exe,,})" =~ (setup|install|.msi$) ]] && [[ "$(basename "${portwine_exe,,}")" =~ (setup|install|.msi$) ]]
then then
export PW_DISABLED_CREATE_DB="1" export PW_DISABLED_CREATE_DB="1"
export PW_VULKAN_USE="1" export PW_VULKAN_USE="1"
......
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