MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / refreshSystemStatus

Function refreshSystemStatus

web/scripts/ragnar_modern.js:14008–14012  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14006 const n = (gitStatus.modified_files || []).length;
14007 warnings.push(`${n} local change${n === 1 ? '' : 's'} in /opt/pwnagotchi`);
14008 }
14009 if (gitStatus.has_stash) {
14010 warnings.push(`${gitStatus.stash_entries} stash ${gitStatus.stash_entries === 1 ? 'entry' : 'entries'} present`);
14011 }
14012 if (gitStatus.status_error) {
14013 warnings.push(gitStatus.status_error);
14014 }
14015 _setPwnUpdateWarnings(warnings);

Callers

nothing calls this directly

Calls 3

fetchSystemStatusFunction · 0.70
fetchNetworkStatsFunction · 0.70
showSystemSuccessFunction · 0.70

Tested by

no test coverage detected