mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-22 12:39:49 +00:00
fix(deck): Check if micro SD card is mounted before attempting to mount
This commit is contained in:
parent
fdd8facb43
commit
1f03d05b97
@ -64,13 +64,14 @@ do_mount()
|
||||
fi
|
||||
|
||||
mount_point=/mnt/sdcard
|
||||
if [[ ! -d "${mount_point}" ]]; then
|
||||
mkdir -p "${mount_point}"
|
||||
/bin/mount "${DEVICE}" "${mount_point}"
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Error mounting ${DEVICE} (status = $ret)"
|
||||
echo "Error mounting ${DEVICE}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Workaround for for Steam compression bug
|
||||
for d in "${mount_point}"/steamapps/{downloading,temp} ; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user