Skip to content

Commit

Permalink
scripts/env.sh: add self-explanatory output help for user if its loca…
Browse files Browse the repository at this point in the history
…l run
  • Loading branch information
ia committed Apr 2, 2024
1 parent e7a53f1 commit 9d77d8c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 9d77d8c

Please sign in to comment.