diff --git a/scripts/bitwarden.ps1 b/scripts/bitwarden.ps1 index 9cabc7931a..134213de6a 100644 --- a/scripts/bitwarden.ps1 +++ b/scripts/bitwarden.ps1 @@ -47,9 +47,6 @@ $githubBaseUrl = "https://raw.githubusercontent.com/bitwarden/core/master" # Functions function Download-Self { - if(!(Test-Path -Path $scriptsDir)) { - New-Item -ItemType directory -Path $scriptsDir | Out-Null - } Invoke-RestMethod -OutFile $scriptPath -Uri "${githubBaseUrl}/scripts/bitwarden.ps1" } @@ -128,7 +125,6 @@ elseif($stop) { Invoke-Expression "$scriptsDir\run.ps1 -stop -outputDir $output -dockerDir $dockerDir" } elseif($updateself) { - Check-Output-Dir-Exists Download-Self echo "Updated self." } diff --git a/scripts/bitwarden.sh b/scripts/bitwarden.sh index 4be95b5143..16dd6ec769 100755 --- a/scripts/bitwarden.sh +++ b/scripts/bitwarden.sh @@ -48,10 +48,6 @@ GITHUB_BASE_URL="https://raw.githubusercontent.com/bitwarden/core/master" # Functions function downloadSelf() { - if [ ! -d "$SCRIPTS_DIR" ] - then - mkdir $SCRIPTS_DIR - fi curl -s -o $SCRIPT_PATH $GITHUB_BASE_URL/scripts/bitwarden.sh chmod u+x $SCRIPT_PATH } @@ -142,7 +138,6 @@ then $SCRIPTS_DIR/run.sh stop $OUTPUT $DOCKER_DIR elif [ "$1" == "updateself" ] then - checkOutputDirExists downloadSelf echo "Updated self." else