From 351f209f4fef2eccc5a391e374bff397eea362fb Mon Sep 17 00:00:00 2001 From: Jandalf81 Date: Mon, 13 Aug 2018 19:13:37 +0200 Subject: [PATCH] rclone_script-install-dialog.sh * fixed logic error when creating the menu item --- rclone_script-install-dialog.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rclone_script-install-dialog.sh b/rclone_script-install-dialog.sh index 4043d6b..a0014df 100644 --- a/rclone_script-install-dialog.sh +++ b/rclone_script-install-dialog.sh @@ -680,9 +680,6 @@ function 4bCreateRCLONE_SCRIPTMenuItem () # check if menu item exists if [[ $(xmlstarlet sel -t -v "count(/gameList/game[path='./rclone_script-menu.sh'])" ~/.emulationstation/gamelists/retropie/gamelist.xml) -eq 0 ]] then - printf "$(date +%FT%T%:z):\t4bCreateRCLONE_SCRIPTMenuItem\tFOUND\n" >> ./rclone_script-install.log - return 0 - else printf "$(date +%FT%T%:z):\t4bCreateRCLONE_SCRIPTMenuItem\tNOT FOUND\n" >> ./rclone_script-install.log # sed -i "/<\/gameList>/c\\\\t\n\t\t.\/rclone_script-menu.sh<\/path>\n\t\tRCLONE_SCRIPT menu<\/name>\n\t\tCustomize RCLONE_SCRIPT, start a full sync, uninstall RCLONE_SCRIPT<\/desc>\n\t\t\n\t<\/game>\n<\/gameList>" ~/.emulationstation/gamelists/retropie/gamelist.xml @@ -703,6 +700,9 @@ function 4bCreateRCLONE_SCRIPTMenuItem () printf "$(date +%FT%T%:z):\t4bCreateRCLONE_SCRIPTMenuItem\tERROR\n" >> ./rclone_script-install.log return 1 fi + else + printf "$(date +%FT%T%:z):\t4bCreateRCLONE_SCRIPTMenuItem\tFOUND\n" >> ./rclone_script-install.log + return 0 fi }