create dapr install dir before copy (#1112)

Signed-off-by: hdget <hdget@qq.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
This commit is contained in:
hdget 2023-10-04 04:17:49 +08:00 committed by GitHub
parent 235f40cf81
commit a08eebb5db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ installFile() {
runAsRoot rm "$DAPR_CLI_FILE" runAsRoot rm "$DAPR_CLI_FILE"
fi fi
chmod o+x $tmp_root_dapr_cli chmod o+x $tmp_root_dapr_cli
mkdir -p $DAPR_INSTALL_DIR
runAsRoot cp "$tmp_root_dapr_cli" "$DAPR_INSTALL_DIR" runAsRoot cp "$tmp_root_dapr_cli" "$DAPR_INSTALL_DIR"
if [ -f "$DAPR_CLI_FILE" ]; then if [ -f "$DAPR_CLI_FILE" ]; then