Skip to content

Commit e44f4ef

Browse files
authored
Fix formatting and command errors in install.ps1
1 parent a136c61 commit e44f4ef

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
@@ -49,7 +49,7 @@ function Show-Banner {
4949
_____ _____ __ __ _ _ _ _ _ _ _______
5050
/ ____| __ \ \ \ / /| | | | | | | \ | |__ __|
5151
| (___ | |__) | \ \_/ / | |__| | | | | \| | | |
52-
\___ \| ___/ \ / | __ | | | | . ` | | |
52+
\___ \| ___/ \ / | __ | | | | . ` | | |
5353
____) | | | | | | | | |__| | |\ | | |
5454
|_____/|_| |_| |_| |_|\____/|_| \_| |_|
5555
@@ -67,7 +67,7 @@ function Test-Python {
6767
try {
6868
$pythonVersion = python --version 2>&1
6969
if ($pythonVersion -match "Python 3\. ([7-9]|1[0-9])") {
70-
Write-Success "Python found: $pythonVersion"
70+
Write-Success "Python found: $pythonVersion"
7171
return $true
7272
}
7373
} catch {
@@ -94,7 +94,7 @@ function Install-Python {
9494
# Check for winget
9595
if (Get-Command winget -ErrorAction SilentlyContinue) {
9696
try {
97-
winget install Python. Python.3.11 --silent --accept-source-agreements --accept-package-agreements
97+
winget install Python.Python.3.11 --silent --accept-source-agreements --accept-package-agreements
9898
Write-Success "Python installed via winget"
9999
} catch {
100100
Write-Error "Failed to install Python via winget: $_"
@@ -107,7 +107,7 @@ function Install-Python {
107107
choco install python3 -y
108108
Write-Success "Python installed via chocolatey"
109109
} catch {
110-
Write-Error "Failed to install Python via chocolatey: $_"
110+
Write-Error "Failed to install Python via chocolatey: $_"
111111
exit 1
112112
}
113113
}
@@ -118,7 +118,7 @@ function Install-Python {
118118
}
119119

120120
# Refresh PATH
121-
$env:Path = [System.Environment]:: GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
121+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
122122

123123
# Wait for PATH to update
124124
Start-Sleep -Seconds 2
@@ -161,7 +161,7 @@ function Install-FromSource {
161161
exit 1
162162
}
163163

164-
$installDir = "$env: USERPROFILE\.spyhunt"
164+
$installDir = "$env:USERPROFILE\.spyhunt"
165165

166166
try {
167167
# Create directory
@@ -227,7 +227,7 @@ Options:
227227
228228
Examples:
229229
irm https://raw.githubusercontent.com/Pymmdrza/SpyHunt/main/install.ps1 | iex
230-
.\install. ps1 -Pip
230+
.\install.ps1 -Pip
231231
.\install.ps1 -Uninstall
232232
233233
"@

0 commit comments

Comments
 (0)