MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _bash

Function _bash

Scripts/ButSystem.py:60–74  ·  view source on GitHub ↗

_bash. Internal helper function. This docstring was expanded to make future maintenance easier. Args: cmd: Parameter. capture: Parameter. Returns: Varies.

(cmd: str, capture: bool=False)

Source from the content-addressed store, hash-verified

58 if capture:
59 return subprocess.run(cmd, check=check, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=text, env=env)
60 return subprocess.run(cmd, check=check, env=env)
61 except FileNotFoundError:
62 return None
63
64def _bash(cmd: str, capture: bool=False):
65 """_bash.
66
67Internal helper function.
68
69This docstring was expanded to make future maintenance easier.
70
71Args:
72 cmd: Parameter.
73 capture: Parameter.
74
75Returns:
76 Varies.
77"""

Callers 1

_termux_pkg_installFunction · 0.70

Calls 1

_runFunction · 0.70

Tested by

no test coverage detected