You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by if...@apache.org on 2022/05/05 08:54:09 UTC
[cassandra-harry] branch trunk updated (c0f9da2 -> c74bcc0)
This is an automated email from the ASF dual-hosted git repository.
ifesdjeen pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-harry.git
discard c0f9da2 fix(scripts/cassandra-harry): Fixing bash if condition
omit 8c2112b fix(scripts/cassandra-harry): Fixing bash if condition
add 66e93a3 Prepare for release.
add 40fb37e [maven-release-plugin] prepare release 0.0.1
add 5570c25 [maven-release-plugin] prepare for next development iteration
new 87290c1 fix(scripts/cassandra-harry): Fixing bash if condition
new c74bcc0 fix(scripts/cassandra-harry): Fixing bash if condition
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (c0f9da2)
\
N -- N -- N refs/heads/trunk (c74bcc0)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
README.md | 39 ++++++++++++++++++++++++
harry-core/pom.xml | 5 ++-
harry-core/src/harry/generators/PCGFastPure.java | 2 +-
harry-integration-external/pom.xml | 5 ++-
harry-integration/pom.xml | 5 ++-
pom.xml | 8 ++---
6 files changed, 50 insertions(+), 14 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org
[cassandra-harry] 01/02: fix(scripts/cassandra-harry): Fixing bash if condition
Posted by if...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ifesdjeen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-harry.git
commit 87290c1fb4d0fec34c3a07a453719d599364f065
Author: Efraimov Oren <or...@gmail.com>
AuthorDate: Thu Jan 13 18:21:22 2022 +0200
fix(scripts/cassandra-harry): Fixing bash if condition
The correct way to check if variable is set is:
```bash
if [ -z ${var+x} ]; then
echo "var is unset"
else
echo "var is set to '$var'"
fi
```
For more information please check the following link:
https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash
---
scripts/cassandra-harry | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/scripts/cassandra-harry b/scripts/cassandra-harry
index 94ee991..7cd4592 100755
--- a/scripts/cassandra-harry
+++ b/scripts/cassandra-harry
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ "x$HARRY_HOME" == 'x' ]; then
+if [ -z ${HARRY_HOME1+x} ]; then
HARRY_HOME=~/cassandra-harry
fi
@@ -41,14 +41,13 @@ while [ $# -gt 0 ]; do
esac
done
-
-if [[ ! -z $node ]]; then
+if [ ! -z ${node+x} ]; then
sed -i -e "s/contact_points:.*/contact_points: $node/g" $HARRY_HOME/conf/external.yaml
fi
-if [[ ! -z $run_time ]]; then
+if [ ! -z ${run_time+x} ]; then
sed -i -e "s/run_time:.*/run_time: $run_time/g" $HARRY_HOME/conf/external.yaml
fi
-if [[ ! -z $run_time_unit ]]; then
+if [ ! -z ${run_time_unit+} ]; then
sed -i -e "s/run_time_unit:.*/run_time_unit: \"$run_time_unit\"/g" $HARRY_HOME/conf/external.yaml
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org
[cassandra-harry] 02/02: fix(scripts/cassandra-harry): Fixing bash if condition
Posted by if...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ifesdjeen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-harry.git
commit c74bcc09ad1f7348d08cf3722d8098af3df77f28
Author: Efraimov Oren <or...@gmail.com>
AuthorDate: Wed Jan 19 16:31:04 2022 +0200
fix(scripts/cassandra-harry): Fixing bash if condition
Some IFs were contained incorrect conditions because of test leftover.
---
scripts/cassandra-harry | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/cassandra-harry b/scripts/cassandra-harry
index 7cd4592..bacffc6 100755
--- a/scripts/cassandra-harry
+++ b/scripts/cassandra-harry
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ -z ${HARRY_HOME1+x} ]; then
+if [ -z ${HARRY_HOME+x} ]; then
HARRY_HOME=~/cassandra-harry
fi
@@ -47,7 +47,7 @@ fi
if [ ! -z ${run_time+x} ]; then
sed -i -e "s/run_time:.*/run_time: $run_time/g" $HARRY_HOME/conf/external.yaml
fi
-if [ ! -z ${run_time_unit+} ]; then
+if [ ! -z ${run_time_unit+x} ]; then
sed -i -e "s/run_time_unit:.*/run_time_unit: \"$run_time_unit\"/g" $HARRY_HOME/conf/external.yaml
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org