From 1c92987b4248fc622ef765744885ae6805065ad5 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 28 Jan 2021 17:50:35 +0100 Subject: [PATCH] fix: logic error --- scripts/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 000b271..db95e05 100755 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -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