Go to file
Kai Kimera 8f4616dfde
2024-02-01 04:35:12
2024-02-01 04:35:12 +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 17:42:11 2023-11-19 17:42:11 +00:00
CHANGELOG.md 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00
CONTRIBUTING.md 2024-02-01 04:35:12 2024-02-01 04:35:12 +00:00
LICENSE 2024-02-01 04:35:12 2024-02-01 04:35:12 +00:00
PkgStore.Install.psd1 2024-02-01 04:35:12 2024-02-01 04:35:12 +00:00
PkgStore.Install.psm1 2023-11-19 17:42:11 2023-11-19 17:42:11 +00:00
README.md 2023-11-19 10:38:21 2023-11-19 10:38:21 +00:00

README.md

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");