GLOBAL.SH: added debug code to conf_write

This commit is contained in:
XargonWan 2022-09-17 17:03:25 +02:00
parent b2391ef5cd
commit f1f03b60dc

View file

@ -37,6 +37,10 @@ fi
conf_write() { conf_write() {
# writes the variables in the retrodeck config file # 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" echo "Writing the config file: $rd_conf"
# TODO: this can be optimized with a while and a list of variables to check # 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 sed -i "s%themes_folder=.*%themes_folder=$themes_folder%" $rd_conf
fi fi
echo "DEBUG: New contents:"
cat $rd_conf
echo ""
} }