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 <[email protected]>
---
RFC -> PATCH v1:
- bailout instead of printing a notice (Michael Olbrich)
- check for PTXDIST_TOPDIR directly in main because it will already be
defined in ptxdist_trap_exit_handler (and also I don't know anymore
what significance ptxdist_trap_exit_handler holds that I used it
previously…)
RFC was at
https://lore.ptxdist.org/ptxdist/[email protected]
---
bin/ptxdist | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/ptxdist b/bin/ptxdist
index 13f81674f4fd..c41065311f0c 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 &&
--
2.29.2
_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to
[email protected]