Skip to content

Commit bb8709c

Browse files
authored
Fix formatting issues in install.ps1
1 parent f272d98 commit bb8709c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $ErrorActionPreference = "Stop"
1414

1515
# Colors
1616
function Write-ColorOutput($ForegroundColor) {
17-
$fc = $host.UI.RawUI. ForegroundColor
17+
$fc = $host.UI.RawUI.ForegroundColor
1818
$host.UI.RawUI.ForegroundColor = $ForegroundColor
1919
if ($args) {
2020
Write-Output $args
@@ -66,7 +66,7 @@ function Test-Python {
6666

6767
try {
6868
$pythonVersion = python --version 2>&1
69-
if ($pythonVersion -match "Python 3\. ([7-9]|1[0-9])") {
69+
if ($pythonVersion -match "Python 3\.([7-9]|1[0-9])") {
7070
Write-Success "Python found: $pythonVersion"
7171
return $true
7272
}
@@ -89,7 +89,7 @@ function Install-Python {
8989

9090
# Check for winget
9191
if (Get-Command winget -ErrorAction SilentlyContinue) {
92-
winget install Python. Python.3.11 --silent
92+
winget install Python.Python.3.11 --silent
9393
}
9494
# Check for chocolatey
9595
elseif (Get-Command choco -ErrorAction SilentlyContinue) {
@@ -123,7 +123,7 @@ function Install-SpyHunt {
123123
function Install-FromSource {
124124
Write-Info "Installing SpyHunt from source..."
125125

126-
$installDir = "$env: USERPROFILE\. spyhunt"
126+
$installDir = "$env: USERPROFILE\.spyhunt"
127127

128128
# Create directory
129129
if (-not (Test-Path $installDir)) {
@@ -153,7 +153,7 @@ function Uninstall-SpyHunt {
153153

154154
python -m pip uninstall spyhunt -y
155155

156-
$installDir = "$env: USERPROFILE\. spyhunt"
156+
$installDir = "$env: USERPROFILE\.spyhunt"
157157
if (Test-Path $installDir) {
158158
Remove-Item -Recurse -Force $installDir
159159
}
@@ -173,7 +173,7 @@ Options:
173173
-Help Show this help message
174174
175175
Examples:
176-
irm https://raw.githubusercontent.com/Pymmdrza/SpyHunt/main/install. ps1 | iex
176+
irm https://raw.githubusercontent.com/Pymmdrza/SpyHunt/main/install.ps1 | iex
177177
.\install.ps1 -Pip
178178
.\install.ps1 -Uninstall
179179
@@ -214,7 +214,7 @@ function Main {
214214
Write-Host ""
215215
Write-Host "Usage:" -ForegroundColor White
216216
Write-Host " spyhunt --help Show help message" -ForegroundColor Cyan
217-
Write-Host " spyhunt -u example. com Scan a target" -ForegroundColor Cyan
217+
Write-Host " spyhunt -u example.com Scan a target" -ForegroundColor Cyan
218218
Write-Host ""
219219
}
220220

0 commit comments

Comments
 (0)