v3-revamp-fedora

This commit is contained in:
2026-07-06 21:10:37 +02:00
parent fb98d432c9
commit 845c33f8df
+15 -5
View File
@@ -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!"