Skip to content

Commit b008fe5

Browse files
authored
fix(scoop-virustotal): escape character not available in PowerShell 5.1 (#5870)
1 parent 5a06eac commit b008fe5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
- **update/uninstall:** Remove items from PATH correctly ([#5833](https://github.com/ScoopInstaller/Scoop/issues/5833))
4747
- **shim:** Allow GUI applications to attach to the shell's console when launched using the GUI shim ([#5721](https://github.com/ScoopInstaller/Scoop/issues/5721))
4848
- **core:** Fix arguments parsing method of `Invoke-ExternalCommand()` ([#5839](https://github.com/ScoopInstaller/Scoop/issues/5839))
49+
- **scoop-virustotal:** Fix the issue that escape character not available in PowerShell 5.1 ([#5870](https://github.com/ScoopInstaller/Scoop/issues/5870))
4950

5051
### Performance Improvements
5152

libexec/scoop-virustotal.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Function Get-VirusTotalResultByHash ($hash, $url, $app) {
136136
warn "$app`: $unsafe/$total, see $report_url"
137137
}
138138
Default {
139-
warn "`e[31m$app`: $unsafe/$total, see $report_url`e[0m"
139+
warn "$([char]0x1b)[31m$app`: $unsafe/$total, see $report_url$([char]0x1b)[0m"
140140
}
141141
}
142142
$maliciousResults = $vendorResults |

0 commit comments

Comments
 (0)