From 56bdb82a4de09e61fd14e4c25ea1aae2af0d5581 Mon Sep 17 00:00:00 2001
From: Carl Philipp Klemm <philipp@uvos.xyz>
Date: Tue, 31 Oct 2023 13:49:50 +0100
Subject: [PATCH] run_expirament: fix loop conditional

---
 expirament.cpp    | 2 +-
 run_expirament.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/expirament.cpp b/expirament.cpp
index 2a65a25..f59fbc9 100644
--- a/expirament.cpp
+++ b/expirament.cpp
@@ -380,7 +380,7 @@ std::filesystem::path Expirament::createCsvPath(const std::filesystem::path& fil
 	while(std::filesystem::exists(candidate))
 	{
 		++i;
-		std::filesystem::path candidate = outdir/(filename.string() + "-" + std::to_string(i) + ".csv");
+		candidate = outdir/(filename.string() + "-" + std::to_string(i) + ".csv");
 	}
 	return candidate;
 }
diff --git a/run_expirament.sh b/run_expirament.sh
index db3456b..df6a8c6 100755
--- a/run_expirament.sh
+++ b/run_expirament.sh
@@ -8,7 +8,7 @@ STOP=0
 STEPFILE=/tmp/cchstep
 RESTART=0
 
-while [[ $STOP == 0 && RESTART < 100 ]]; do
+while [[ $STOP == 0 && RESTART -lt 100 ]]; do
 
 	echo "Starting expirament at step $STEP substep $SUBSTEP"
 
-- 
GitLab