Merge pull request 'Configure: Fix option c when p is not available' (#34) from unbrot/fedora-OEMDRV:main into main

Reviewed-on: #34
This commit was merged in pull request #34.
This commit is contained in:
2026-06-17 09:00:41 +02:00
+2 -3
View File
@@ -46,8 +46,6 @@ do_configure() {
if [[ -f "$CONF_PRE" ]]; then
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."
@@ -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