code: func (s *SourceScriptHandler) Install(r *api.InstallResult) error {
  	dst := filepath.Join(s.DestinationDir, constants.UploadScripts, r.Script)
  	if err := s.fs.Rename(r.URL, dst); err != nil {
  		return err
  	}
  	if err := s.fs.Chmod(dst, 0755); err != nil {
  		return err
  	}
  	// Make the path to scripts nicer in logs
  	parts := strings.Split(filepath.ToSlash(r.URL), "/")
  	if len(parts) > 3 {
  		r.URL = filepath.FromSlash(sourcesRootAbbrev + "/" + strings.Join(parts[len(parts)-3:], "/"))
  	}
  	r.Installed = true
  	r.Downloaded = true
  	return nil
  }
docs: // Install copies the script into upload directory and fix its permissions.