kdebug 0.7.1__tar.gz → 0.7.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: kdebug
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: TUI for Kubernetes Debug Containers
5
5
  Project-URL: Homepage, https://github.com/jessegoodier/kdebug
6
6
  Project-URL: Repository, https://github.com/jessegoodier/kdebug
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "kdebug"
7
- version = "0.7.1"
7
+ version = "0.7.2"
8
8
  description = "TUI for Kubernetes Debug Containers"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -21,6 +21,7 @@ import importlib.resources
21
21
  import json
22
22
  import os
23
23
  import re
24
+ import shlex
24
25
  import subprocess
25
26
  import sys
26
27
  import termios
@@ -105,8 +106,10 @@ def run_command(cmd: str, check: bool = True, use_bash: bool = False) -> Optiona
105
106
  ["bash", "-c", cmd], capture_output=True, text=True, check=check
106
107
  )
107
108
  else:
109
+ # Run as a direct exec (no shell) so kubectl works in environments
110
+ # where /bin/sh is absent (distroless / minimal container images).
108
111
  result = subprocess.run(
109
- ["sh", "-c", cmd], capture_output=True, text=True, check=check
112
+ shlex.split(cmd), capture_output=True, text=True, check=check
110
113
  )
111
114
  return result.stdout.strip()
112
115
  except subprocess.CalledProcessError as e:
File without changes
File without changes
File without changes
File without changes
File without changes