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:11 UTC

[cassandra-harry] 02/02: fix(scripts/cassandra-harry): Fixing bash if condition

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