mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-23 06:25:39 +00:00
GLOBAL.SH: added debug code to conf_write
This commit is contained in:
parent
b2391ef5cd
commit
f1f03b60dc
|
@ -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 ""
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue