From f9373f44d2afe65ee2a836c63c82e05c3a9b7b04 Mon Sep 17 00:00:00 2001
From: XargonWan <xargonwan@gmail.com>
Date: Sat, 17 Sep 2022 17:03:25 +0200
Subject: [PATCH] GLOBAL.SH: added debug code to conf_write

---
 global.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/global.sh b/global.sh
index 98829902..58652eda 100755
--- a/global.sh
+++ b/global.sh
@@ -37,6 +37,10 @@ fi
 conf_write() {
   # writes the variables in the retrodeck config file
 
+  echo "DEBUG: printing the config file content before writing it:"
+  cat $rd_conf
+  echo ""
+
   echo "Writing the config file: $rd_conf"
 
   # TODO: this can be optimized with a while and a list of variables to check
@@ -65,4 +69,8 @@ conf_write() {
     sed -i "s%themes_folder=.*%themes_folder=$themes_folder%" $rd_conf
   fi
 
+  echo "DEBUG: New contents:"
+  cat $rd_conf
+  echo ""
+
 }
\ No newline at end of file