No description
Find a file
2023-11-19 10:38:21 +00:00
.github/workflows 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
Private 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
Public 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
CHANGELOG.md 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
CONTRIBUTING.md 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
LICENSE 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
PkgStore.Install.psd1 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
PkgStore.Install.psm1 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
README.md 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00

PowerShell Install Module

Module for installing third-party modules from GitHub.

Install

$MOD = "Install"; $PFX = "PkgStore"; $DIR = "$(($Env:PSModulePath -split ';')[0])"; Invoke-WebRequest "https://github.com/pkgstore/pwsh-${MOD}/archive/refs/heads/main.zip" -OutFile (Join-Path $DIR "${MOD}.zip"); Expand-Archive -Path (Join-Path $DIR "${MOD}.zip") -DestinationPath "${DIR}"; if (Test-Path -Path (Join-Path $DIR "${PFX}.${MOD}")) { Remove-Item -Path (Join-Path $DIR "${PFX}.${MOD}") -Recurse -Force }; Rename-Item -Path (Join-Path $DIR "pwsh-${MOD}-main") -NewName (Join-Path $DIR "${PFX}.${MOD}"); Remove-Item -Path (Join-Path $DIR "${MOD}.zip");