Remove old Dapr CLI to avoid file corruption (#885)

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
This commit is contained in:
Bernd Verst 2022-01-26 10:44:36 -08:00 committed by GitHub
parent 68c2ab84d4
commit 6a7cdfd407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,9 @@ installFile() {
exit 1
fi
if [ -f "$DAPR_CLI_FILE" ]; then
runAsRoot rm "$DAPR_CLI_FILE"
fi
chmod o+x $tmp_root_dapr_cli
runAsRoot cp "$tmp_root_dapr_cli" "$DAPR_INSTALL_DIR"