From 2f77f5ef1a39426543bfcb1ff548fa2ee5837901 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 28 Jun 2024 06:29:50 +0000 Subject: [PATCH] Bug 37038: (QA follow-up) Replace \> by -gt Content-Type: text/plain; charset=utf-8 Note that -gt is the bash integer comparison and > is the lexical one: $ if [ '1' \> '09' ]; then echo true; fi true $ if [ '1' -gt '09' ]; then echo true; fi Signed-off-by: Marcel de Rooy --- debian/scripts/koha-elasticsearch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/scripts/koha-elasticsearch b/debian/scripts/koha-elasticsearch index 24f4970941..6dc38cf8ca 100755 --- a/debian/scripts/koha-elasticsearch +++ b/debian/scripts/koha-elasticsearch @@ -90,12 +90,12 @@ run_rebuild_elasticsearch() KOHA_BINDIR=${KOHA_HOME}/misc fi - if [ "${clo_commit_size}" \> 0 ]; then + if [ "${clo_commit_size}" -gt 0 ]; then commit_size=${clo_commit_size} fi rebuild_opts="--commit ${commit_size}" - if [ "${clo_processes}" \> 0 ]; then + if [ "${clo_processes}" -gt 0 ]; then processes=${clo_processes} fi rebuild_opts="${rebuild_opts} --processes ${processes}" -- 2.30.2