Skip to content

Commit 76a38e2

Browse files
rasar15ch13
authored andcommitted
Add multi-line support to pre/post_install (fixes #1890) (#1980)
* Add multi-line support to pre/post_install (fixes #1890) * iex (@($p.._install) -join "`r`n")
1 parent 93d87e4 commit 76a38e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,15 +884,15 @@ function pre_install($manifest, $arch) {
884884
$pre_install = arch_specific 'pre_install' $manifest $arch
885885
if($pre_install) {
886886
write-output "Running pre-install script..."
887-
iex $pre_install
887+
iex (@($pre_install) -join "`r`n")
888888
}
889889
}
890890

891891
function post_install($manifest, $arch) {
892892
$post_install = arch_specific 'post_install' $manifest $arch
893893
if($post_install) {
894894
write-output "Running post-install script..."
895-
iex $post_install
895+
iex (@($post_install) -join "`r`n")
896896
}
897897
}
898898

0 commit comments

Comments
 (0)