From 334c00e197699401a783f17fa5ef1d7123d03d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Wed, 17 Jun 2026 08:45:45 +0200 Subject: [PATCH] Configure: Fix option c when p is not available --- system_setup/configure.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/system_setup/configure.sh b/system_setup/configure.sh index 800745b..7ca8428 100755 --- a/system_setup/configure.sh +++ b/system_setup/configure.sh @@ -44,13 +44,11 @@ do_configure() { if [ -f "$CONF_FILE" ] || [ -f "$CONF_PRE" ]; then echo "Some alternatives found for configure source:" if [[ -f "$CONF_PRE" ]]; then - echo " Choice (p): Another config run result was found in $CONF_PRE ." + echo " Choice (p): Another config run result was found in $CONF_PRE." echo " Hint: May contain Values that already were setup different for your details" - else - unset CONF_PRE fi if [[ -f "$CONF_FILE" ]]; then - echo " Choice (c): Found companys full config in $CONF_FILE ." + echo " Choice (c): Found companys full config in $CONF_FILE." echo " This may be a full config, that is valid for your company." else unset CONF_FILE @@ -64,12 +62,13 @@ do_configure() { case "${CHOICE}" in "p") if [[ -f "$CONF_PRE" ]]; then - echo "Using the existing config run file." + echo "Using the existing config run file $CONF_PRE" break fi ;; "c") if [[ -f "$CONF_FILE" ]]; then + echo "Replacing $CONF_PRE with $CONF_FILE" rm "$CONF_PRE" >/dev/null 2>&1 cp "$CONF_FILE" "$CONF_PRE" && break fi