Merge branch 'powershell-safe-chain-detection' into fish-safe-chain-detection

This commit is contained in:
Sander Declerck 2025-08-04 10:22:40 +02:00
commit c0805431ab
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
function printSafeChainWarning() { function printSafeChainWarning() {
# \033[43;30m is used to set the background color to yellow and text color to black # \033[43;30m is used to set the background color to yellow and text color to black
# \033[0m is used to reset the text formatting # \033[0m is used to reset the text formatting
printf "\033[43;30mWarning:\033[0m safe-chain is not available to protect you from installing malware. %s will be run directly.\n" "$1" printf "\033[43;30mWarning:\033[0m safe-chain is not available to protect you from installing malware. %s will run without it.\n" "$1"
# \033[36m is used to set the text color to cyan # \033[36m is used to set the text color to cyan
printf "Install safe-chain by using \033[36mnpm install -g @aikidosec/safe-chain\033[0m.\n" printf "Install safe-chain by using \033[36mnpm install -g @aikidosec/safe-chain\033[0m.\n"
} }

View file

@ -3,7 +3,7 @@ function Write-SafeChainWarning {
# PowerShell equivalent of ANSI color codes: yellow background, black text for "Warning:" # PowerShell equivalent of ANSI color codes: yellow background, black text for "Warning:"
Write-Host "Warning:" -BackgroundColor Yellow -ForegroundColor Black -NoNewline Write-Host "Warning:" -BackgroundColor Yellow -ForegroundColor Black -NoNewline
Write-Host " safe-chain is not available to protect you from installing malware. $Command will be run directly." Write-Host " safe-chain is not available to protect you from installing malware. $Command will run without it."
# Cyan text for the install command # Cyan text for the install command
Write-Host "Install safe-chain by using " -NoNewline Write-Host "Install safe-chain by using " -NoNewline