Skip to content

Commit ac3b203

Browse files
committed
win mac merge init commit
1 parent ba05a12 commit ac3b203

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

common/win/env-prequisite-checks.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ function Set-ProxyInEnv {
6161
}
6262

6363
function Check-Java-Installation {
64-
Log-Line "🔍 Checking if 'java' command exists..." $global:NOW_RUN_LOG_FILE
64+
Log-Line "Checking if 'java' command exists..." $global:NOW_RUN_LOG_FILE
6565
if (-not (Get-Command java -ErrorAction SilentlyContinue)) {
6666
Log-Error "Java command not found in PATH." $global:NOW_RUN_LOG_FILE
6767
return $false
6868
}
6969

70-
Log-Line "🔍 Checking if Java runs correctly..." $global:NOW_RUN_LOG_FILE
70+
Log-Line "Checking if Java runs correctly..." $global:NOW_RUN_LOG_FILE
7171
try {
7272
$output = java -version 2>&1 | Out-String
7373
Log-Success "Java installed and functional`n$output"
@@ -103,15 +103,15 @@ function Check-Python-Installation {
103103
}
104104

105105
function Check-NodeJS-Installation {
106-
Log-Line "🔍 Checking if 'node' command exists..." $global:NOW_RUN_LOG_FILE
106+
Log-Line "Checking if 'node' command exists..." $global:NOW_RUN_LOG_FILE
107107
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
108-
Log-Warn "Node.js command not found in PATH." $global:NOW_RUN_LOG_FILE
108+
Log-Error "Node.js command not found in PATH." $global:NOW_RUN_LOG_FILE
109109
return $false
110110
}
111111

112112
Log-Line "Checking if 'npm' command exists..." $global:NOW_RUN_LOG_FILE
113113
if (-not (Get-Command npm -ErrorAction SilentlyContinue)) {
114-
Log-Warn "npm command not found in PATH." $global:NOW_RUN_LOG_FILE
114+
Log-Error "npm command not found in PATH." $global:NOW_RUN_LOG_FILE
115115
return $false
116116
}
117117

@@ -123,7 +123,7 @@ function Check-NodeJS-Installation {
123123
Log-Success "npm installed: $npmVer"
124124
return $true
125125
} catch {
126-
Log-Warn "Node.js/npm exists but failed to run." $global:NOW_RUN_LOG_FILE
126+
Log-Error "Node.js/npm exists but failed to run." $global:NOW_RUN_LOG_FILE
127127
return $false
128128
}
129129
}

0 commit comments

Comments
 (0)