Skip to content

Conversation

@raghur-orca
Copy link

Instructions to remove the tmp directory used for downloading and extracting orca-cli tool: rm -rf "${tmpdir}"

Instructions to remove the tmp directory used for downloading and extracting orca-cli tool:
rm -rf "${tmpdir}"
/usr/bin/pgrep -q oahd || log_info "M1 CPU requires Rosetta 2, which appears to be missing. Install it by running: '/usr/sbin/softwareupdate --install-rosetta'"
fi

rm -rf "${tmpdir}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is very dangerous, in case of issues we might delete customer data. is it really necessary ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yinonsh-orca We delete the temporary directory which we have created for orca-cli installation:
tmpdir=$(mktmpdir)
After installing the orca-cli, we should be OK to delete the directory created by us.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yinonsh-orca / @liorj-orca Any thoughts on my last comment.?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the directory is created under /tmp, there's no need to delete it.

@liorj-orca what do you think ? Was this raised by customers ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants