You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2022/11/24 17:57:48 UTC

[couchdb-glazier] branch main updated: Create dummy logfile without BOM (#17)

This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-glazier.git


The following commit(s) were added to refs/heads/main by this push:
     new 1e42755  Create dummy logfile without BOM (#17)
1e42755 is described below

commit 1e427557973f5e8585512d5b9643f377b4cc617a
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Thu Nov 24 18:57:43 2022 +0100

    Create dummy logfile without BOM (#17)
    
    Replace the Out-File cmdlet (creates file with BOM) with New-Item cmdlet to create a dummy log file.
---
 bin/build_installer.ps1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/build_installer.ps1 b/bin/build_installer.ps1
index d528125..d5b37e0 100644
--- a/bin/build_installer.ps1
+++ b/bin/build_installer.ps1
@@ -50,7 +50,7 @@ Move-Item -Path "${CouchDB}\etc\vm.args" -Destination "${CouchDB}\etc\vm.args.di
       -replace "^writer = stderr", "writer = file" |
       Out-File "default.ini"
 # WiX skips empty directories, so we create a dummy logfile
-Write-Output "New Log" | Out-File "${CouchDB}\var\log\couchdb.log"
+New-Item -Name "${CouchDB}\var\log\couchdb.log" -ItemType File
 
 # Build our custom action.
 Push-Location CustomAction