diff options
author | Roland Hieber <rhi@pengutronix.de> | 2021-06-06 15:53:50 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-06-11 11:14:02 +0200 |
commit | d93df30ca039207a49664c1d83d83a8efe06a3f9 (patch) | |
tree | 4f120ab811bab00bec58525cadb9b3bd12ecd8ac | |
parent | 57815b19af9e35b471c79f05b3736f962278b74d (diff) | |
download | ptxdist-d93df30ca039207a49664c1d83d83a8efe06a3f9.tar.gz ptxdist-d93df30ca039207a49664c1d83d83a8efe06a3f9.tar.xz |
ptxdist: print a note when calling ptxdist inside 'ptxdist bash'
For debugging purposes it might be useful to run ptxdist inside a
'ptxdist bash' session, but under normal conditions this will not work
out of the box. Mention the fact to prevent confusion and useless
debugging sessions:
$ ptxdist
FATAL didn't find /scripts/ptxdist_vars.sh
Note: PTXdist was called inside 'ptxdist bash' – things may be broken.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Message-Id: <20210606135350.22150-1-rhi@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-x | bin/ptxdist | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 13f81674f..c41065311 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -2641,6 +2641,10 @@ setup_export() { ######################################################################## main() { + if [ -n "${PTXDIST_TOPDIR}" ]; then + ptxd_bailout "Calling PTXdist inside 'ptxdist bash' is not supported." + fi + check_uid && check_path && |