1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

update self path

This commit is contained in:
Kyle Spearrin
2017-08-23 16:22:02 -04:00
parent a34e19206c
commit 9af19bfcb8
2 changed files with 6 additions and 5 deletions

View File

@ -29,7 +29,7 @@ https://bitwarden.com, https://github.com/bitwarden
# Setup
$scriptName = $MyInvocation.MyCommand.Name
$scriptPath = $MyInvocation.MyCommand.Path
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
if($output -eq "") {
$output="${dir}\bitwarden"
@ -50,7 +50,7 @@ if(!(Test-Path -Path $scriptsDir)) {
# Functions
function Download-Self {
Invoke-RestMethod -OutFile $scriptsDir\$scriptName -Uri "${githubBaseUrl}/scripts/bitwarden.ps1"
Invoke-RestMethod -OutFile $scriptPath -Uri "${githubBaseUrl}/scripts/bitwarden.ps1"
}
function Download-Install {