mirror of
https://github.com/bitwarden/server.git
synced 2025-02-16 01:51:21 +01:00
Properly download bitwarden.sh (#720)
This commit is contained in:
parent
330ff7cd80
commit
e6526ab596
@ -43,8 +43,13 @@ WEBVERSION="2.13.2"
|
|||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
function downloadSelf() {
|
function downloadSelf() {
|
||||||
curl -s -o $SCRIPT_PATH $GITHUB_BASE_URL/scripts/bitwarden.sh
|
if curl -s -w "http_code %{http_code}" -o $SCRIPT_PATH.1 $GITHUB_BASE_URL/scripts/bitwarden.sh | grep -q "^http_code 20[0-9]"
|
||||||
chmod u+x $SCRIPT_PATH
|
then
|
||||||
|
mv $SCRIPT_PATH.1 $SCRIPT_PATH
|
||||||
|
chmod u+x $SCRIPT_PATH
|
||||||
|
else
|
||||||
|
rm -f $SCRIPT_PATH.1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function downloadRunFile() {
|
function downloadRunFile() {
|
||||||
|
Loading…
Reference in New Issue
Block a user