From da2fce05d0579128316741a736122cad4351aedb Mon Sep 17 00:00:00 2001
From: Martin Schroschk <martin.schroschk@tu-dresden.de>
Date: Wed, 8 May 2024 10:40:52 +0200
Subject: [PATCH] Fix few missing indentations in scripts

---
 doc.zih.tu-dresden.de/util/check-code-style.sh       |  2 +-
 .../util/check-templated-code-snippets.sh            | 12 ++++++------
 .../util/grep-forbidden-patterns.sh                  |  2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/doc.zih.tu-dresden.de/util/check-code-style.sh b/doc.zih.tu-dresden.de/util/check-code-style.sh
index 5fae71527..7001cb9e0 100755
--- a/doc.zih.tu-dresden.de/util/check-code-style.sh
+++ b/doc.zih.tu-dresden.de/util/check-code-style.sh
@@ -110,7 +110,7 @@ fi
 
 any_fails=false
 
-for file in $files; do
+for file in ${files}; do
   # Skip the check of this current ($0) script.
   if echo "${file}" | grep -qP "check-code-style.sh$"; then
     continue
diff --git a/doc.zih.tu-dresden.de/util/check-templated-code-snippets.sh b/doc.zih.tu-dresden.de/util/check-templated-code-snippets.sh
index 2cf1cc3a4..d5b567e5a 100755
--- a/doc.zih.tu-dresden.de/util/check-templated-code-snippets.sh
+++ b/doc.zih.tu-dresden.de/util/check-templated-code-snippets.sh
@@ -43,14 +43,14 @@ fi
 
 all_ok=''
 for f in ${files}; do
-if ! ${pythonscript} ${f}; then
-all_ok='no'
-fi
+  if ! ${pythonscript} ${f}; then
+    all_ok='no'
+  fi
 done
 
 if [[ -z "${all_ok}" ]]; then
-echo "Success!"
+  echo "Success!"
 else
-echo "Fail!"
-exit 1
+  echo "Fail!"
+  exit 1
 fi
diff --git a/doc.zih.tu-dresden.de/util/grep-forbidden-patterns.sh b/doc.zih.tu-dresden.de/util/grep-forbidden-patterns.sh
index b95b955f8..876fea08c 100755
--- a/doc.zih.tu-dresden.de/util/grep-forbidden-patterns.sh
+++ b/doc.zih.tu-dresden.de/util/grep-forbidden-patterns.sh
@@ -189,7 +189,7 @@ fi
 #Prevent files from being printed when the script is invoked with default
 # arguments.
 if [[ ${verbose} == true ]]; then
-echo "... ${files} ..."
+  echo "... ${files} ..."
 fi
 cnt=0
 if [[ ! -z "${file}" ]]; then
-- 
GitLab