From 81eeddd3318394147aa6f7ecdb19e783a89ba927 Mon Sep 17 00:00:00 2001 From: Mart124 <37041094+Mart124@users.noreply.github.com> Date: Mon, 13 Jan 2020 15:47:59 +0100 Subject: [PATCH] downloadRunFile when updateself (#638) * downloadRunFile when updateself * Download-Run-File when $updateself * Add updateconf function * Add --updaterun option * Typo * Typo --- scripts/bitwarden.ps1 | 6 ++++++ scripts/bitwarden.sh | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/scripts/bitwarden.ps1 b/scripts/bitwarden.ps1 index 984aa0b7c..a0e6f18ad 100644 --- a/scripts/bitwarden.ps1 +++ b/scripts/bitwarden.ps1 @@ -7,6 +7,7 @@ param ( [switch] $rebuild, [switch] $updateconf, [switch] $updatedb, + [switch] $updaterun, [switch] $updateself, [switch] $help, [string] $output = "" @@ -60,6 +61,7 @@ Available commands: -stop -update -updatedb +-updaterun -updateself -updateconf -rebuild @@ -135,6 +137,10 @@ elseif ($stop) { Check-Output-Dir-Exists Invoke-Expression "& `"$scriptsDir\run.ps1`" -stop -outputDir `"$output`" -coreVersion $coreVersion -webVersion $webVersion" } +elseif ($updaterun) { + Check-Output-Dir-Exists + Download-Run-File +} elseif ($updateself) { Download-Self Write-Line "Updated self." diff --git a/scripts/bitwarden.sh b/scripts/bitwarden.sh index fe46f6758..179c9de8c 100755 --- a/scripts/bitwarden.sh +++ b/scripts/bitwarden.sh @@ -83,6 +83,7 @@ restart stop update updatedb +updaterun updateself updateconf rebuild @@ -126,6 +127,10 @@ elif [ "$1" == "stop" ] then checkOutputDirExists $SCRIPTS_DIR/run.sh stop $OUTPUT $COREVERSION $WEBVERSION +elif [ "$1" == "updaterun" ] +then + checkOutputDirExists + downloadRunFile elif [ "$1" == "updateself" ] then downloadSelf && echo "Updated self." && exit