input: Write a function to construct a Bash script that installs a specified software version. The script should handle downloading, extracting, configuring, compiling, and installing the software. If the installation is successful, the function should return True, otherwise, it should return False. The function should handle any errors that may occur during the process.
  assert install_software("Python 3.8.5")==True
  assert install_software("Java 11")==True
  assert install_software("Node.js 14.15.0")==True
  assert install_software("Invalid Software")==False
  assert install_software("")==False
output: def install_software(version):
      try:
          if not version:
              return False
          # Download the software
          download_command = f"wget https://example.com/{version}.tar.gz"
          os.system(download_command)
          
          # Extract the software
          extract_command = f"tar -xzf {version}.tar.gz"
          os.system(extract_command)
          
          # Configure the software
          configure_command = f"cd {version} && ./configure"
          os.system(configure_command)
          
          # Compile the software
          compile_command = f"cd {version} && make"
          os.system(compile_command)
          
          # Install the software
          install_command = f"cd {version} && sudo make install"
          os.system(install_command)
          
          return True
      except Exception as e:
          return False