From deebe2d0042179803ea85f621556a7efeabe9622 Mon Sep 17 00:00:00 2001 From: KitsuneSolar Date: Sun, 19 Nov 2023 17:45:30 +0000 Subject: [PATCH] 2023-11-19 17:45:30 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 878ddc9..03446da 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,5 @@ Generic module for PowerShell. Used in PkgStore modules. Contains common functio ## Install ```powershell -${MOD} = "Kernel"; ${PFX} = "PkgStore"; ${DIR} = "$( (${env:PSModulePath} -split ';')[0] )"; Invoke-WebRequest "https://github.com/pkgstore/pwsh-${MOD}/archive/refs/heads/main.zip" -OutFile "${DIR}\${MOD}.zip"; Expand-Archive -Path "${DIR}\${MOD}.zip" -DestinationPath "${DIR}"; if ( Test-Path -Path "${DIR}\${PFX}.${MOD}" ) { Remove-Item -Path "${DIR}\${PFX}.${MOD}" -Recurse -Force }; Rename-Item -Path "${DIR}\pwsh-${MOD}-main" -NewName "${DIR}\${PFX}.${MOD}"; Remove-Item -Path "${DIR}\${MOD}.zip"; +Install-CustomModule -Name 'Kernel' -GitHubPath 'pkgstore/pwsh-kernel' ```