From 340ab0b95f02c3a07012a77c6e402ebb8444fb88 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 23 Oct 2019 15:27:40 +0530 Subject: [PATCH] Fix logs on windows --- src/scripts/win32.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 2a463755..2e6535ff 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -6,12 +6,12 @@ $tick = ([char]8730) $cross = ([char]10007) Function Step-Log($message) { - printf "\n\033[90;1m==> \033[0m\033[37;1m%s \033[0m" $message + printf "\n\033[90;1m==> \033[0m\033[37;1m%s \033[0m\n" $message } Function Add-Log($mark, $subject, $message) { $code = if($mark -eq $cross) {"31"} else {"32"} - printf "\033[%s;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m" $code $mark $subject $message + printf "\033[%s;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" $code $mark $subject $message } if($version -eq '7.4') { @@ -20,7 +20,6 @@ if($version -eq '7.4') { Step-Log "Setup PhpManager" Install-Module -Name PhpManager -Force -Scope CurrentUser -printf "\n" Add-Log $tick "PhpManager" "Installed" $installed = $($(php -v)[0] -join '')[4..6] -join ''