This is an automated email from the ASF dual-hosted git repository.
djwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/main by this push:
new 6e8aa55b60b Update bash $PATH in gpdemo for better portability
6e8aa55b60b is described below
commit 6e8aa55b60bc4bc7d4aa0823915e211e765f47e7
Author: Dianjin Wang <[email protected]>
AuthorDate: Mon Jun 16 14:07:52 2025 +0800
Update bash $PATH in gpdemo for better portability
Replace hardcoded `/usr/bin/bash` path with `/usr/bin/env bash` in
gpAux/gpdemo/Makefile to improve portability across different systems.
This change ensures the demo cluster can be created regardless of where
bash is installed on the system.
Will return the following errors when testing under Ubuntu 18.04
container:
```
gpadmin@cdw:~/cloudberry$ make create-demo-cluster -C ~/cloudberry
make: Entering directory '/home/gpadmin/cloudberry'
make -C gpAux/gpdemo create-demo-cluster
make[1]: Entering directory '/home/gpadmin/cloudberry/gpAux/gpdemo'
make[1]: /usr/bin/bash: Command not found
```
This change makes the demo environment more robust across different
Linux distributions, container environments, and custom installations.
---
gpAux/gpdemo/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gpAux/gpdemo/Makefile b/gpAux/gpdemo/Makefile
index b6e794e57ab..386876b9b87 100644
--- a/gpAux/gpdemo/Makefile
+++ b/gpAux/gpdemo/Makefile
@@ -9,7 +9,7 @@
top_builddir = ../..
-include $(top_builddir)/src/Makefile.global
-SHELL := /usr/bin/bash
+SHELL := /usr/bin/env bash
all:
$(MAKE) clean
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]