input: Write a function to install a given software version using a Bash script. The function will take the software name and version number as input and will return a Bash script that downloads, extracts, configures, compiles, and installs the specified software. If the installation is successful, return the script; otherwise, return an error message.
  
  assert install_software("Python", "3.8.5")==`#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
  
  # Extract the tgz file
  tar -xzf Python-3.8.5.tgz
  
  # Move into the Python directory
  cd Python-3.8.5
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install`
  
  assert install_software("Java", "11.0.2")==`#!/bin/bash
  
  # Download JDK 11.0.2
  curl -O https://download.oracle.com/otn/java/jdk/11.0.2+9/f5144cd429b34b0286671c4f7a4cfd5b/jdk-11.0.2_linux-x64_bin.tar.gz
  
  # Extract the tar.gz file
  tar -xzf jdk-11.0.2_linux-x64_bin.tar.gz
  
  # Move into the JDK directory
  cd jdk-11.0.2
  
  # Set environment variables
  export JAVA_HOME=$(pwd)
  export PATH=$JAVA_HOME/bin:$PATH`
  
  assert install_software("UnknownSoftware", "1.0")=="Error: Software not supported."
output: def install_software(software, version):
      if software == "Python":
          return f"""#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/{version}/Python-{version}.tgz
  
  # Extract the tgz file
  tar -xzf Python-{version}.tgz
  
  # Move into the Python directory
  cd Python-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
      elif software == "Java":
          return f"""#!/bin/bash
  
  # Download JDK {version}
  curl -O https://download.oracle.com/otn/java/jdk/{version}+9/f5144cd429b34b0286671c4f7a4cfd5b/jdk-{version}_linux-x64_bin.tar.gz
  
  # Extract the tar.gz file
  tar -xzf jdk-{version}_linux-x64_bin.tar.gz
  
  # Move into the JDK directory
  cd jdk-{version}
  
  # Set environment variables
  export JAVA_HOME=$(pwd)
  export PATH=$JAVA_HOME/bin:$PATH"""
      else:
          return "Error: Software not supported."