From 9fab03b64e7952d45dd7d680d95cbd73eb43e617 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Thu, 3 Nov 2022 13:58:55 +0100
Subject: [PATCH] fix: rename one of the --mode's to match existing naming in
 prod

---
 validate_workflow.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/validate_workflow.sh b/validate_workflow.sh
index 64dd3b6..e6c1b95 100755
--- a/validate_workflow.sh
+++ b/validate_workflow.sh
@@ -43,7 +43,7 @@
 #hh                 watch-folder to invalid folder
 #hh      -s, --statistics
 #hh                 print a statistic
-#hh      -m, --mode [auto, mediathek, fotothek, save, kitodo, lfulg]
+#hh      -m, --mode [auto, mediathek, fotothek, save, kitodo, digas]
 #hh                the mode 'auto' tries to check files based on file mime-types.
 #hh                The other modes are actual workflow names.
 #hh      -d, --daemon
@@ -91,8 +91,8 @@ validators[_______save_mka__current]="/usr/bin/mediaconch -ft -p /etc/mediaconch
 validators[_______save_mka_upcoming]="/usr/bin/mediaconch -ft -p /etc/mediaconch/save_retroaudio_current.xml FILE"
 validators[_____kitodo_tif__current]="/usr/bin/checkit_tiff_current /etc/checkit_tiff/retromono_current FILE"
 validators[_____kitodo_tif_upcoming]="/usr/bin/checkit_tiff_upcoming /etc/checkit_tiff/retromono_upcoming FILE"
-validators[______lfulg_tif__current]="/usr/bin/checkit_tiff_current /etc/checkit_tiff/retrogeomono_current FILE"
-validators[______lfulg_tif_upcoming]="/usr/bin/checkit_tiff_upcoming /etc/checkit_tiff/retrogeomono_upcoming FILE"
+validators[______digas_tif__current]="/usr/bin/checkit_tiff_current /etc/checkit_tiff/retrogeomono_current FILE"
+validators[______digas_tif_upcoming]="/usr/bin/checkit_tiff_upcoming /etc/checkit_tiff/retrogeomono_upcoming FILE"
 validators[___fotothek_tif__current]="/usr/bin/checkit_tiff_current /etc/checkit_tiff/retrofoto_current FILE"
 validators[___fotothek_tif_upcoming]="/usr/bin/checkit_tiff_upcoming /etc/checkit_tiff/retrofoto_upcoming FILE"
 validators[_____kitodo_icc__current]="/usr/local/bin/iccDumpProfile -v FILE"
@@ -270,8 +270,8 @@ get_cli_args() {
         && [ "$MODE" != "fotothek" ] \
         && [ "$MODE" != "save" ] \
         && [ "$MODE" != "kitodo" ] \
-        && [ "$MODE" != "lfulg" ]; then
-        error "param --mode must be 'auto', 'mediathek', 'fotothek', 'save', 'kitodo' or 'lfulg'!"
+        && [ "$MODE" != "digas" ]; then
+        error "param --mode must be 'auto', 'mediathek', 'fotothek', 'save', 'kitodo' or 'digas'!"
         exit 1
     fi
     if [ "$WITH_PIPE" -eq 1 ]; then
-- 
GitLab