From 857ef7f87577184d9d87694dfc6320e232cf19f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Tue, 8 Nov 2022 09:44:14 +0100 Subject: [PATCH] fix: rename another one of the --mode's to match existing naming in prod --- validate_workflow.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/validate_workflow.sh b/validate_workflow.sh index e6c1b95..1f60299 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, digas] +#hh -m, --mode [auto, mediathek, fotothek, save, ddz, 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 @@ -89,14 +89,14 @@ validators[_______save_mkv__current]="/usr/bin/mediaconch -ft -p /etc/mediaconch validators[_______save_mkv_upcoming]="/usr/bin/mediaconch -ft -p /etc/mediaconch/save_retrovideofilm_upcoming.xml FILE" validators[_______save_mka__current]="/usr/bin/mediaconch -ft -p /etc/mediaconch/save_retroaudio_current.xml FILE" 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[________ddz_tif__current]="/usr/bin/checkit_tiff_current /etc/checkit_tiff/retromono_current FILE" +validators[________ddz_tif_upcoming]="/usr/bin/checkit_tiff_upcoming /etc/checkit_tiff/retromono_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" -validators[_____kitodo_icc_upcoming]="/usr/local/bin/iccDumpProfile -v FILE" +validators[________ddz_icc__current]="/usr/local/bin/iccDumpProfile -v FILE" +validators[________ddz_icc_upcoming]="/usr/local/bin/iccDumpProfile -v FILE" set -o nounset # Treat unset variables as an error @@ -269,9 +269,9 @@ get_cli_args() { && [ "$MODE" != "mediathek" ] \ && [ "$MODE" != "fotothek" ] \ && [ "$MODE" != "save" ] \ - && [ "$MODE" != "kitodo" ] \ + && [ "$MODE" != "ddz" ] \ && [ "$MODE" != "digas" ]; then - error "param --mode must be 'auto', 'mediathek', 'fotothek', 'save', 'kitodo' or 'digas'!" + error "param --mode must be 'auto', 'mediathek', 'fotothek', 'save', 'ddz' or 'digas'!" exit 1 fi if [ "$WITH_PIPE" -eq 1 ]; then @@ -387,13 +387,13 @@ estimate_mode() { debug "estimate_mode, using mimetype: $mimetype" case ${mimetype} in "image/tiff") - MODE="kitodo" + MODE="ddz" ;; "video/x-matroska") MODE="save" ;; "application/vnd.iccprofile") - MODE="kitodo" + MODE="ddz" ;; *) warn "workflow not detectable for mimetype $mimetype" -- GitLab