mirror of
https://github.com/bitwarden/server.git
synced 2025-02-16 01:51:21 +01:00
update self path
This commit is contained in:
parent
a34e19206c
commit
9af19bfcb8
@ -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 {
|
||||
|
@ -21,8 +21,9 @@ EOF
|
||||
|
||||
# Setup
|
||||
|
||||
SCRIPT_NAME=`basename "$0"`
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
SCRIPT_NAME=`basename "$0"`
|
||||
SCRIPT_PATH="$DIR/$SCRIPT_NAME"
|
||||
OUTPUT="$DIR/bitwarden"
|
||||
if [ $# -eq 2 ]
|
||||
then
|
||||
@ -52,8 +53,8 @@ fi
|
||||
# Functions
|
||||
|
||||
function downloadSelf() {
|
||||
curl -s -o $SCRIPTS_DIR/$SCRIPT_NAME $GITHUB_BASE_URL/scripts/bitwarden.sh
|
||||
chmod u+x $SCRIPTS_DIR/$SCRIPT_NAME
|
||||
curl -s -o $SCRIPT_PATH $GITHUB_BASE_URL/scripts/bitwarden.sh
|
||||
chmod u+x $SCRIPT_PATH
|
||||
}
|
||||
|
||||
function downloadInstall() {
|
||||
|
Loading…
Reference in New Issue
Block a user