From 6a7cdfd40798d13e8ad6ce6019e4fdba6d0e4359 Mon Sep 17 00:00:00 2001 From: Bernd Verst <4535280+berndverst@users.noreply.github.com> Date: Wed, 26 Jan 2022 10:44:36 -0800 Subject: [PATCH] Remove old Dapr CLI to avoid file corruption (#885) Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com> --- install/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/install.sh b/install/install.sh index afbd97db..82e19b50 100755 --- a/install/install.sh +++ b/install/install.sh @@ -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"