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

Function get_carrier

Scripts/Settings.py:790–794  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

788 if start_marker in line:
789 in_block = True
790 continue
791 if end_marker in line:
792 in_block = False
793 break
794
795 # Works for both the startup line and alias lines like: alias e='cd "..." && python3 ...'
796 if in_block:
797 match = re.search(r'cd\s+\"([^\"]+)\"', line)

Callers 1

get_hardware_detailsFunction · 0.70

Calls 1

run_command_silentFunction · 0.70

Tested by

no test coverage detected