From f456fbbda711249bd0ffe15e5a78efab5f6ae77c Mon Sep 17 00:00:00 2001 From: Lx32 Date: Tue, 24 Sep 2024 22:06:53 +0200 Subject: [PATCH] Added full shortcut clean --- functions/steam_sync.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/functions/steam_sync.sh b/functions/steam_sync.sh index b9138e66..6f8c9037 100644 --- a/functions/steam_sync.sh +++ b/functions/steam_sync.sh @@ -118,10 +118,23 @@ EOF done fi done - #steam-rom-manager add + + if [ -z "$( ls -A $steamsync_folder )" ]; then + log d "No games found, cleaning shortcut" + remove_from_steam + else + log d "Updating game list" + #steam-rom-manager add + fi + log i "Steam Sync: completed" } remove_from_steam() { - echo "TBD" + log d "Creating fake game" + cat "" > "$steamsync_folder/CUL0.sh" + log d "Cleaning the shortcut" + steam-rom-manager remove + log d "Removing fake game" + rm "$steamsync_folder/CUL0.sh" }