fix: logic error

This commit is contained in:
th33xitus
2021-01-28 17:50:35 +01:00
parent d01140638a
commit 1c92987b42

View File

@@ -465,7 +465,7 @@ write_printer_cfg(){
init_ini(){
### copy an existing kiauh.ini to its new location to keep all possible saved values
if [ -f ${SRCDIR}/kiauh/kiauh.ini ] || [ ! -f $INI_FILE ]; then
if [ -f ${SRCDIR}/kiauh/kiauh.ini ] && [ ! -f $INI_FILE ]; then
cp ${SRCDIR}/kiauh/kiauh.ini $INI_FILE
fi
if [ ! -f $INI_FILE ]; then