diff --git a/fedora/fedora-full.sh b/fedora/fedora-full.sh index cf02eca..adc240d 100755 --- a/fedora/fedora-full.sh +++ b/fedora/fedora-full.sh @@ -48,11 +48,22 @@ else fi echo "Running installer..." -cd "$REPO_DIR" | ./install.sh { - echo "Error: Failed to enter $REPO_DIR" >&2 + +# Move into the directory safely and execute the installer directly as an executable sub-process +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 +./install.sh || { + color_red "Error: SDDM theme installer encountered an issue." + exit 1 +} + +color_green "SDDM theme installer completed successfully!" + pause_if_debug # Ensure NetworkManager manages all interfaces