From 4fb3cafdb1b8f01b33e25093a1cd27518d7cd97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 2 Nov 2020 14:48:30 +0100 Subject: [PATCH] Fixed some issues with args parsing --- CB/__init__.py | 2 +- CurseBreaker.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CB/__init__.py b/CB/__init__.py index d13a816..0d446c4 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -2,7 +2,7 @@ import random from rich.terminal_theme import TerminalTheme -__version__ = '3.14.1' +__version__ = '3.14.2' __license__ = 'GPLv3' __copyright__ = '2019-2020, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en' diff --git a/CurseBreaker.py b/CurseBreaker.py index 818d5ef..fe52df9 100644 --- a/CurseBreaker.py +++ b/CurseBreaker.py @@ -13,7 +13,7 @@ import pyperclip import subprocess from csv import reader -from shlex import split, quote +from shlex import split from pathlib import Path from datetime import datetime from rich import box @@ -380,7 +380,7 @@ def parse_link(self, text, link, dev=None, authors=None, uiversion=None): def c_install(self, args, recursion=False): if args: optignore = False - pargs = split(quote(args)) + pargs = split(args.replace("'", "\\'")) if '-i' in pargs: optignore = True args = args.replace('-i', '', 1) @@ -423,7 +423,7 @@ def c_install(self, args, recursion=False): def c_uninstall(self, args): if args: optkeep = False - pargs = split(quote(args)) + pargs = split(args.replace("'", "\\'")) if '-k' in pargs: optkeep = True args = args.replace('-k', '', 1) @@ -543,7 +543,7 @@ def c_status(self, args): optsource = False optcompact = False if args: - pargs = split(quote(args)) + pargs = split(args.replace("'", "\\'")) if '-s' in pargs: optsource = True args = args.replace('-s', '', 1)