def get_new_command(command): dir = shells.quote(_tar_file(command.script_parts)[1]) return shells.and_('mkdir -p {dir}', '{cmd} -C {dir}') \ .format(dir=dir, cmd=command.script)
def get_new_command(command): return u'{} -d {}'.format(command.script, quote(_zip_file(command)[:-4]))