Changeset: bf743bc2b531 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bf743bc2b531 Modified Files: MacOSX/post-install.sh Branch: Jul2015 Log Message:
OS X install: only add MonetDB binaries to path if not already set diffs (12 lines): diff --git a/MacOSX/post-install.sh b/MacOSX/post-install.sh --- a/MacOSX/post-install.sh +++ b/MacOSX/post-install.sh @@ -1,2 +1,7 @@ #!/bin/bash -echo 'export PATH=/usr/local/monetdb/bin:$PATH' >> ~/.profile + +monetdb_path=/usr/local/monetdb/bin + +if [[ ":$PATH:" != *":$monetdb_path:"* ]]; then + printf '\n# Set MonetDB path\nexport PATH=$PATH:'$monetdb_path'\n' >> ~/.profile +fi _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
