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

Function modify_bashrc

Scripts/Settings.py:1143–1148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1141 )
1142 if fetch.returncode != 0:
1143 raise RuntimeError(f"git fetch failed for origin/{branch}")
1144 reset = subprocess.run(
1145 [shutil.which("git") or "git", "reset", "--hard", f"origin/{branch}"],
1146 cwd=existing_path, check=False,
1147 )
1148 if reset.returncode != 0:
1149 raise RuntimeError(f"git reset failed for origin/{branch}")
1150 subprocess.run(
1151 [shutil.which("git") or "git", "clean", "-f", "--", "*.py", "*.css", "*.sh", "*.bash"],

Callers 1

change_promptFunction · 0.70

Calls 4

inputFunction · 0.85
printFunction · 0.85
_Function · 0.70
set_prompt_usernameFunction · 0.70

Tested by

no test coverage detected