Skip to content
Permalink
Browse files
fix(scripts/cassandra-harry): Fixing bash if condition
Some IFs were contained incorrect conditions because of test leftover.
  • Loading branch information
Orenef11 authored and ifesdjeen committed May 5, 2022
1 parent 87290c1 commit c74bcc09ad1f7348d08cf3722d8098af3df77f28
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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

0 comments on commit c74bcc0

Please sign in to comment.