code: func getScriptsURL(image *api.Image) string {
  	if image == nil {
  		return ""
  	}
  	scriptsURL := getLabel(image, constants.ScriptsURLLabel)
  
  	// For backward compatibility, support the old label schema
  	if len(scriptsURL) == 0 {
  		scriptsURL = getLabel(image, constants.DeprecatedScriptsURLLabel)
  		if len(scriptsURL) > 0 {
  			glog.V(0).Infof("warning: Image %s uses deprecated label '%s', please migrate it to %s instead!",
  				image.ID, constants.DeprecatedScriptsURLLabel, constants.ScriptsURLLabel)
  		}
  	}
  	if len(scriptsURL) == 0 {
  		scriptsURL = getVariable(image, constants.ScriptsURLEnvironment)
  		if len(scriptsURL) != 0 {
  			glog.V(0).Infof("warning: Image %s uses deprecated environment variable %s, please migrate it to %s label instead!",
  				image.ID, constants.ScriptsURLEnvironment, constants.ScriptsURLLabel)
  		}
  	}
  	if len(scriptsURL) == 0 {
  		glog.V(0).Infof("warning: Image %s does not contain a value for the %s label", image.ID, constants.ScriptsURLLabel)
  	} else {
  		glog.V(2).Infof("Image %s contains %s set to %q", image.ID, constants.ScriptsURLLabel, scriptsURL)
  	}
  
  	return scriptsURL
  }
docs: // getScriptsURL finds a scripts url label in the image metadata