From 98507718d2e0caf75ea418a10244c32d2caf78dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Sun, 17 Jan 2021 17:11:20 +0100 Subject: [PATCH] more fixes --- create_retroarch_chd_playlist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_retroarch_chd_playlist.sh b/create_retroarch_chd_playlist.sh index 9db67db..7f5a0c6 100755 --- a/create_retroarch_chd_playlist.sh +++ b/create_retroarch_chd_playlist.sh @@ -283,7 +283,7 @@ zxspectrum) esac -if test f "${PLAYLISTS_FOLDER}"/"${PLAYLIST_NAME}".lpl; then +if test -f "${PLAYLISTS_FOLDER}"/"${PLAYLIST_NAME}".lpl; then rm "${PLAYLISTS_FOLDER}"/"${PLAYLIST_NAME}".lpl fi touch "${PLAYLISTS_FOLDER}"/"${PLAYLIST_NAME}".lpl @@ -297,7 +297,7 @@ echo " \"right_thumbnail_mode\": 0,"; echo " \"left_thumbnail_mode\": 0,"; echo " \"sort_mode\": 0,"; echo " \"items\": [" >>"${PLAYLISTS_FOLDER}"/"${PLAYLIST_NAME}".lpl -for CHDFILE in "${ROM_FOLDER}"/"${SYSTEM}"/*.chd; do +for CHDFILE in "${ROM_FOLDER}"/*.chd; do GAMENAME="$(basename "$CHDFILE" .chd)" echo " {"; echo " \"path\": \"${BASE_PATH}/${CHDFILE}\",";