From 9d77d8c0abb4536f7e22f9185c99146a82e99e00 Mon Sep 17 00:00:00 2001 From: Ivan Zorin Date: Tue, 2 Apr 2024 14:22:38 +0300 Subject: [PATCH] scripts/env.sh: add self-explanatory output help for user if its local run --- scripts/env.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/env.sh b/scripts/env.sh index 2dcec702..7d65c924 100755 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -19,5 +19,15 @@ rm md5.txt tar xvjf "${TARBALL}" rm "${TARBALL}" -echo "export PATH=\"${CURDIR}/${TARDIR}/bin\":\"\${PATH}\"" > build.env +if [ -n "${GITHUB_CI_PR_SHA}" ]; then + # This is for GitHub Actions CI/CD tooling only + echo "export PATH=\"${CURDIR}/${TARDIR}/bin\":\"\${PATH}\"" > build.env +else + # And this is for local install + echo "" + echo "Add a line like" + echo "export PATH=\"${CURDIR}/${TARDIR}/bin\":\"\${PATH}\"" + echo "to your ~/.profile and/or ~/.bashrc and run the line to enable toolchain as default one for arm-none-eabi-* target" + echo "" +fi;