empty content on editing file

This commit is contained in:
Saeed Vaziry
2024-03-29 00:42:36 +01:00
parent f1efb9a6c8
commit f089779045
5 changed files with 6 additions and 6 deletions

View File

@ -98,12 +98,12 @@ public function reboot(): void
);
}
public function editFile(string $path, string $content): void
public function editFile(string $path, ?string $content = null): void
{
$this->server->ssh()->exec(
$this->getScript('edit-file.sh', [
'path' => $path,
'content' => $content,
'content' => $content ?? '',
]),
);
}