mirror of
https://github.com/bitwarden/self-host.git
synced 2026-06-28 14:25:45 +00:00
Merge pull request #19 from bitwarden/16-use-mv-f-for-unattended-updateself
This commit is contained in:
@@ -65,7 +65,7 @@ echo ""
|
||||
function downloadSelf() {
|
||||
if curl -L -s -w "http_code %{http_code}" -o $SCRIPT_PATH.1 $BITWARDEN_SCRIPT_URL | grep -q "^http_code 20[0-9]"
|
||||
then
|
||||
mv $SCRIPT_PATH.1 $SCRIPT_PATH
|
||||
mv -f $SCRIPT_PATH.1 $SCRIPT_PATH
|
||||
chmod u+x $SCRIPT_PATH
|
||||
else
|
||||
rm -f $SCRIPT_PATH.1
|
||||
|
||||
Reference in New Issue
Block a user