Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
just fix the goddam bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CallMeEchoCodes authored Jul 19, 2021
1 parent ac86e90 commit 2123127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/GeneralFunctions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$version = "1.0.0-beta.8"
$build = (Get-CimInstance Win32_OperatingSystem).version
$winver = (Get-WmiObject -class Win32_OperatingSystem).Caption

$chocoinstalled = Get-Command -Name choco.exe -ErrorAction SilentlyContinue

function setup {
if ($winver -like "*Windows 11*") {
Expand Down Expand Up @@ -47,7 +47,7 @@ function Info {
}

function InstallChoco {
if (Get-Command -Name choco.exe -ErrorAction -eq $null) {
if ($chocoinstalled -eq $null) {
Write-Output "Seems Chocolatey is not installed, installing now"
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
refreshenv
Expand Down

0 comments on commit 2123127

Please sign in to comment.