diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/parse.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse.py b/src/parse.py index ad7498b..bccece4 100755 --- a/src/parse.py +++ b/src/parse.py @@ -172,5 +172,8 @@ print(text, end = '') sys.stdout.flush() if not DEBUG: - os.system('bash -c "psf2txt <(gunzip < \'%s\') /dev/stderr 2>&1 >/dev/null | grep -v ++"' % font.replace('\'', '\'\\\'\'')) + if font.lower().endswith('.gz'): + os.system('bash -c "psf2txt <(gunzip < \'%s\') /dev/stderr 2>&1 >/dev/null | grep -v ++"' % font.replace('\'', '\'\\\'\'')) + else: + os.system('bash -c "psf2txt \'%s\' /dev/stderr 2>&1 >/dev/null | grep -v ++"' % font.replace('\'', '\'\\\'\'')) |
