feat(manifest): initialize manifest
This commit is contained in:
parent
b8221f9abf
commit
8533997b68
3 changed files with 139 additions and 49 deletions
|
|
@ -25,11 +25,13 @@ function Get-Manifest
|
|||
{
|
||||
try
|
||||
{
|
||||
$raw = Get-Content $File
|
||||
$raw = Get-Content $File | Out-String
|
||||
}
|
||||
|
||||
catch
|
||||
{
|
||||
{
|
||||
Write-Debug $_
|
||||
|
||||
$raw = '{"pages":{}, "attachments": {}}'
|
||||
}
|
||||
|
||||
|
|
@ -66,6 +68,7 @@ function Set-Manifest
|
|||
|
||||
if ($Backup)
|
||||
{
|
||||
#FIXME: this always assumes the current working directory
|
||||
Copy-Item -Path $File -Destination "$(Split-Path -Leaf $File).bck"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue