This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluo-uno.git


The following commit(s) were added to refs/heads/main by this push:
     new 55dffa1  Patch accumulo-env.sh to run on Mac OS X (#300)
55dffa1 is described below

commit 55dffa1017f2586fd0ab5468bded37bb1dd17d26
Author: kristapsdz-saic <99488923+kristapsdz-s...@users.noreply.github.com>
AuthorDate: Mon Jan 22 17:02:31 2024 -0800

    Patch accumulo-env.sh to run on Mac OS X (#300)
    
    While https://github.com/apache/accumulo/pull/4152 is making its way thru, 
this patch allows for running existing code on Mac OS X.
---
 bin/impl/install/accumulo.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/impl/install/accumulo.sh b/bin/impl/install/accumulo.sh
index 04b9a2d..293f089 100755
--- a/bin/impl/install/accumulo.sh
+++ b/bin/impl/install/accumulo.sh
@@ -47,6 +47,10 @@ tar xzf "$DOWNLOADS/$ACCUMULO_TARBALL" -C "$INSTALL"
 
 conf=$ACCUMULO_HOME/conf
 
+# On BSD systems (e.g., Mac OS X), paste(1) requires an argument.
+
+sed -i'' -e 's!paste -sd:)!paste -sd: -)!' "$conf/accumulo-env.sh"
+
 cp "$UNO_HOME"/conf/accumulo/common/* "$conf"
 if [[ $ACCUMULO_VERSION =~ ^1\..*$ ]]; then
   accumulo_conf=$conf/accumulo-site.xml

Reply via email to