diff --git a/README.md b/README.md index 4b124cc..f91a1e2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A script for transferring and saving files to Vault (storage directory), while m ## Install ```powershell -${MOD} = "Vault"; ${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 'Vault' -GitHubPath 'pkgstore/pwsh-vault' ``` ## Syntax