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