diff --git a/create_retroarch_chd_playlist.sh b/create_retroarch_chd_playlist.sh index 08a8cd7..0b8de7c 100755 --- a/create_retroarch_chd_playlist.sh +++ b/create_retroarch_chd_playlist.sh @@ -27,17 +27,17 @@ if ! echo "$SYSTEMS" | grep -w "$1" >/dev/null; then exit 0 fi -if ! test -d "${ROM_FOLDER}"/"${SYSTEM}"; then - echo "${ROM_FOLDER}"/"${SYSTEM}" does not exists - exit 0 -fi - #readonly SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" readonly SYSTEM="$1" readonly ROM_FOLDER="$2" readonly PLAYLISTS_FOLDER="$3" readonly BASE_PATH="/Users/sergio/Roms/roms.retroachievements.2020/" +if ! test -d "${ROM_FOLDER}"/"${SYSTEM}"; then + echo "${ROM_FOLDER}"/"${SYSTEM}" does not exists + exit 0 +fi + case $SYSTEM in 3do)