This is an automated email from the ASF dual-hosted git repository. yuanz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
commit 56840333edbb1f027e547689d3be97a493c8b759 Author: Thomas Hebb <t...@meta.com> AuthorDate: Fri Apr 21 14:53:03 2023 -0400 setup.sh: function from any working directory All the commands in this script assume they're run from the project root, but we don't enforce that. Fix it by changing to the script's directory before doing anything else. --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.sh b/setup.sh index ff3265e..4f8586a 100755 --- a/setup.sh +++ b/setup.sh @@ -19,6 +19,10 @@ set -xe +########################################## +# move to project root +cd "$(dirname "$0")" + ########################################## # install Rust and select a proper version curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2021-09-20 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@teaclave.apache.org For additional commands, e-mail: commits-h...@teaclave.apache.org