diff options
author | chrisjbillington | 2022-03-23 09:08:35 +1100 |
---|---|---|
committer | chrisjbillington | 2022-03-23 09:08:35 +1100 |
commit | 1e68fee685836fec5589c8088b61b206be1868ca (patch) | |
tree | 6988c1f31af27f5efc1b0005a2d3e3ad810ada52 | |
parent | 8a7f66104b6098499809e266c38005d62807eb93 (diff) | |
download | aur-1e68fee685836fec5589c8088b61b206be1868ca.tar.gz |
LANG=C in all subprocesses whose output we are going to parse
-rwxr-xr-x | remove-orphaned-kernels | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remove-orphaned-kernels b/remove-orphaned-kernels index b8757c07c06d..5ad116de007a 100755 --- a/remove-orphaned-kernels +++ b/remove-orphaned-kernels @@ -7,7 +7,8 @@ MODULES = '/usr/lib/modules' def get_output(*cmd): - return run(cmd, capture_output=True).stdout.decode('utf8').strip() + p = run(cmd, capture_output=True, env=os.environ | {'LANG': 'C'}) + return p.stdout.decode('utf8').strip() def yn_choice(message, default='y'): |