If your Mac is not shut down gracefully (e.g., power loss, forced reboot), the APFS sparse bundle used for Game Libraries might report data verification issues. This can cause the volume to become read-only or refuse to write data.
Workaround:
Open Disk Utility.
Select the mounted volume (e.g., SteamLibrary).
Click First Aid and let it run.
Once verified, it will work normally again.
Note: Standard SMB, Rclone, and SFTP mounts are not affected by this issue.
Welcome to PR for fix this issue, I suggest ejecting the APFS after mounting it, then remounting it and running First Aid. The logic and commands for mounting APFS in the script need to be optimized.
APFS is mounted as SteamLib

If your Mac is not shut down gracefully (e.g., power loss, forced reboot), the APFS sparse bundle used for Game Libraries might report data verification issues. This can cause the volume to become read-only or refuse to write data.
Workaround:
Open Disk Utility.
Select the mounted volume (e.g., SteamLibrary).
Click First Aid and let it run.
Once verified, it will work normally again.
Note: Standard SMB, Rclone, and SFTP mounts are not affected by this issue.
Welcome to PR for fix this issue, I suggest ejecting the APFS after mounting it, then remounting it and running First Aid. The logic and commands for mounting APFS in the script need to be optimized.
APFS is mounted as SteamLib
