From d5fd18a2c3f6abc3b63968713052b6073c4c3a12 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 7 Oct 2022 18:50:36 -0400 Subject: [PATCH] Fix for missing ROMs folder --- retrodeck.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/retrodeck.sh b/retrodeck.sh index 6c437926..f66158a0 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -251,6 +251,17 @@ post_update() { # post update script echo "Executing post-update script" + # Finding existing ROMs folder + if [ -d "$default_sd/retrodeck" ] + then + # ROMs on SD card + roms_folder="$default_sd/retrodeck/roms" + else + # ROMs on Internal + roms_folder="$HOME/retrodeck/roms" + fi + echo "ROMs folder found at $roms_folder" + # Unhiding downloaded media from the previous versions if [ -d "$rdhome/.downloaded_media" ] then