docs: def run_script(self,
  	               script,
  	               in_shell=True,
  	               echo=None,
  	               note=None,
  	               loglevel=logging.DEBUG):
  		"""Run the passed-in string as a script on the target's command line.
  
  		@param script:   String representing the script. It will be de-indented
  						 and stripped before being run.
  		@param in_shell: Indicate whether we are in a shell or not. (Default: True)
  		@param note:     See send()
  
  		@type script:    string
  		@type in_shell:  boolean
  		"""
  		shutit = self.shutit
  		shutit.handle_note(note, 'Script: ' + str(script))
  		shutit.log('Running script beginning: "' + ''.join(script.split())[:30] + ' [...]', level=logging.INFO)
  		# Trim any whitespace lines from start and end of script, then dedent
  		lines = script.split('\n')
  		while lines and re.match('^[ \t]*$', lines[0]):
  			lines = lines[1:]
  		while lines and re.match('^[ \t]*$', lines[-1]):
  			lines = lines[:-1]
  		if not lines:
  			return True
  		script = '\n'.join(lines)
  		script = textwrap.dedent(script)
  		# Send the script and run it in the manner specified
  		if shutit.build['delivery'] in ('docker','dockerfile') and in_shell:
  			script = ('set -o xtrace \n\n' + script + '\n\nset +o xtrace')
  		self.quick_send('command mkdir -p ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts && chmod 777 ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts', echo=False)
  		self.send_file(shutit_global.shutit_global_object.shutit_state_dir + '/scripts/shutit_script.sh',
  		               script,
  		               echo=False,
  		               loglevel=loglevel)
  		self.quick_send('command chmod +x ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts/shutit_script.sh', echo=False)
  		shutit.build['shutit_command_history'].append('    ' + script.replace('\n', '\n    '))
  		if in_shell:
  			ret = self.send(ShutItSendSpec(self,
  			                               send=' . ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts/shutit_script.sh && rm -f ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts/shutit_script.sh && rm -f ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts/shutit_script.sh',
  			                               echo=False,
  			                               loglevel=loglevel))
  		else:
  			ret = self.send(ShutItSendSpec(self,
  			                               send=' ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts/shutit_script.sh && rm -f ' + shutit_global.shutit_global_object.shutit_state_dir + '/scripts/shutit_script.sh',
  			                               echo=False,
  			                               loglevel=loglevel))
  		shutit.handle_note_after(note=note)
  		return ret