From 845c33f8df23e7bcd65b94da95ea31017c488e56 Mon Sep 17 00:00:00 2001 From: Yuri Kuit Date: Mon, 6 Jul 2026 21:10:37 +0200 Subject: [PATCH] v3-revamp-fedora --- fedora/fedora-full.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/fedora/fedora-full.sh b/fedora/fedora-full.sh index 8dfb584..a415997 100755 --- a/fedora/fedora-full.sh +++ b/fedora/fedora-full.sh @@ -49,18 +49,28 @@ fi echo "Running installer..." -# Move into the directory safely and execute the installer directly as an executable sub-process +# Move into the directory safely cd "$REPO_DIR" || { color_red "Error: Failed to enter $REPO_DIR" exit 1 } -# Make sure it's executable and run it cleanly chmod +x install.sh -yes | ./install.sh || { - color_red "Error: SDDM theme installer encountered an issue." + +# Temporarily disable pipefail so SIGPIPE doesn't register as a fatal script crash +set +o pipefail + +yes | ./install.sh +INSTALL_STATUS=$? + +# Instantly restore pipefail for the remaining application scripts +set -o pipefail + +# Verify the installer script's actual status code +if [ $INSTALL_STATUS -ne 0 ]; then + color_red "Error: SDDM theme installer encountered a genuine runtime issue." exit 1 -} +fi color_green "SDDM theme installer completed successfully!"