Skip to content

Commit

Permalink
fix: spaces in SD card names caused issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ebenbruyns committed May 30, 2024
1 parent 5a058e3 commit b999fcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions defaults/scripts/Extensions/Epic/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ if [[ "${EPIC_INSTALLLOCATION}" == "SSD" ]]; then
elif [[ "${EPIC_INSTALLLOCATION}" == "MicroSD" ]]; then
NVME=$(lsblk --list | grep nvme0n1\ |awk '{ print $2}' | awk '{split($0, a,":"); print a[1]}')
LINK=$(find /run/media -maxdepth 1 -type l )
LINK_TARGET=$(readlink -f $LINK)
MOUNT_PONT=$(lsblk --list --exclude $NVME | grep part | awk '{print $7}')
if [[ $MOUNT_PONT == $LINK_TARGET ]]; then
LINK_TARGET=$(readlink -f "${LINK}")
MOUNT_PONT=$(lsblk --list --exclude "${NVME}" | grep part | cut -d \ -f 11-)
if [[ "${MOUNT_PONT}" == "${LINK_TARGET}" ]]; then
INSTALL_DIR="${LINK}/Games/epic/"
else
INSTALL_DIR="/run/media/mmcblk0p1/Games/epic/"
Expand Down

0 comments on commit b999fcc

Please sign in to comment.