Merge pull request #19 from bitwarden/16-use-mv-f-for-unattended-updateself

This commit is contained in:
Micaiah Martin
2022-04-11 18:29:44 +00:00
committed by GitHub

View File

@@ -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