code: func (s *URLScriptHandler) Install(r *api.InstallResult) error {
  	downloadURL, err := url.Parse(r.URL)
  	if err != nil {
  		return err
  	}
  	dst := filepath.Join(s.DestinationDir, constants.UploadScripts, r.Script)
  	if _, err := s.Download.Download(downloadURL, dst); err != nil {
  		if e, ok := err.(s2ierr.Error); ok {
  			if e.ErrorCode == s2ierr.ScriptsInsideImageError {
  				r.Installed = true
  				return nil
  			}
  		}
  		return err
  	}
  	if err := s.FS.Chmod(dst, 0755); err != nil {
  		return err
  	}
  	r.Installed = true
  	r.Downloaded = true
  	return nil
  }
docs: // Install downloads the script and fix its permissions.