Installing Vortex Mod Manager for steam deck with Baldur's Gate 3 Support

Before you recomend using steam tinker launch I am not using a skyrim or fallout game with Vortex.
Im trying to use Balder’s Gate 3 with vortex.

I was trying to edit the following A Wine prefix installer for Vortex mod manager! Includes full Steam Library detection across any mount points. Steam Deck compatible! I was editing the script myself with chat gpt because im a noob.

So far we got to the point where

  - task:
      name: detect_steam_deck
      executable: bash
      description: Detect Steam Deck
      script: |
        STEAM_INSTALL_PATH="/home/deck/.steam/steam/"
        if [ -d "$STEAM_INSTALL_PATH" ]; then
            # Steam is installed on the Steam Deck
            # Add your logic for handling Steam Deck here
        else
            # Steam is not installed on the Steam Deck
            # Add your logic for other systems here
            echo "Steam is not installed on this system."
        fi

  - task:
      name: steam_library_paths
      executable: bash
      description: Set Steam Library Paths
      script: |
        if [ -d "$STEAM_INSTALL_PATH" ]; then
            # Steam is installed on the Steam Deck
            STEAM_LIBRARY_PATH1="/home/deck/.steam/steam/steamapps/common/"
            STEAM_LIBRARY_PATH2="/run/media/mmcblk0p1/steamapps/common/"
        else
            # Steam is not installed on the Steam Deck
            # Add paths for other systems here
            echo "Steam is not installed on this system."
        fi

And then for baldur’s gate

- task:
    name: add_baldurs_gate_3_support
    executable: bash
    description: Add Support for Baldur's Gate 3
    script: |
      if [ -d "$STEAM_INSTALL_PATH" ]; then
          # Steam is installed on the Steam Deck
          # Set variables for "Baldur's Gate 3" on the Steam Deck
          if [ -d "$STEAM_LIBRARY_PATH1/Baldurs Gate 3" ]; then
              CURRENT_INSTALL_PATH="$STEAM_LIBRARY_PATH1/Baldurs Gate 3"
          elif [ -d "$STEAM_LIBRARY_PATH2/Baldurs Gate 3" ]; then
              CURRENT_INSTALL_PATH="$STEAM_LIBRARY_PATH2/Baldurs Gate 3"
          fi
          CURRENT_PREFIX_PATH=""  # Set the Proton prefix path if needed
      else
          # Steam is not installed on the Steam Deck
          # Add paths for other systems here
      fi

So thats where i stopped I was getting YAML errors regarding formatting and I gave up.

The reason i went down this rabbit hole was because I was getting an error saying steam was not installed when runing the installer via flatpak I am on a steam deck so of course its installed.