From 8216c105e525c6b48a712cbc70a27263940ee109 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Sun, 13 Oct 2019 20:32:20 +0200 Subject: [PATCH] Add debug printf to display the running script --- games/save.game.home | 2 ++ games/save.game.steam | 2 ++ games/save.game.xdg | 2 ++ 3 files changed, 6 insertions(+) diff --git a/games/save.game.home b/games/save.game.home index fcffab9..94481ed 100755 --- a/games/save.game.home +++ b/games/save.game.home @@ -90,6 +90,8 @@ fi # }}} + [ "${debug}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Run save game script for Homedir." + # Manage save game from homedir {{{ ## Set "%" as field separator IFS="%" diff --git a/games/save.game.steam b/games/save.game.steam index d3f862f..3fd3662 100755 --- a/games/save.game.steam +++ b/games/save.game.steam @@ -157,6 +157,8 @@ done # }}} + [ "${debug}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Run save game script for Steam." + # Manage Steam userdata save game {{{ for game_id in ${steam_userdata_games}; do local_game_path="${HOME}/${steam_userdata}/${game_id}" diff --git a/games/save.game.xdg b/games/save.game.xdg index 8627d43..39d7162 100755 --- a/games/save.game.xdg +++ b/games/save.game.xdg @@ -135,6 +135,8 @@ done # }}} + [ "${debug}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Run save game script for XDG." + # Manage XDG config save game {{{ ## Set "%" as field separator IFS="%"