Compare commits

...

2 commits

Author SHA1 Message Date
rawdatafeel c68eccad3d
Merge 0dc04cb5d9 into f1acb03663 2024-05-10 02:00:16 -04:00
BrettMayson f1acb03663
proton-launch.sh fix finding proton when paths have spaces (#1222)
Co-authored-by: rawdatafeel <108900299+rawdatafeel@users.noreply.github.com>
2024-05-10 00:11:45 -04:00

View file

@ -173,13 +173,13 @@ main () {
# shellcheck disable=SC2207
steamPaths=()
# Make sure all paths are valid directories
for p in $( grep path "${steamLibraryFolders}" | awk '{print $2}' | sed 's|\"||g' ); do
while IFS= read -r p; do
if [ -d "${p}" ]; then
steamPaths+=("${p}")
else
echo "INFO: ${steamLibraryFolders} contains invalid directory ${p}." >> "${LOGFILE}"
fi
done
done < <(grep path "${steamLibraryFolders}" | awk -F '"' '{print $4}' | sed 's|\"||g')
# Exit if there are no paths found.
if [[ "${#steamPaths[@]}" -eq 0 ]]; then