diff --git a/validate_workflow.sh b/validate_workflow.sh
index 85fb37ad7f7b03619394053cfca8f34f800dc81e..346d1f80ccb7d07d4c5f5e5819a3bb350f891c0c 100755
--- a/validate_workflow.sh
+++ b/validate_workflow.sh
@@ -404,14 +404,14 @@ else
         /usr/bin/inotifywait --monitor --recursive --event create \
             --event attrib --event moved_to --format "%w%f" "$WATCH_FOLDER" \
             | while read -r filename; do
-        debug "called inotifywait using /usr/bin/inotifywait --monitor
-        --recursive --event create --event attrib --event moved_to --format '%f' $WATCH_FOLDER"
-        scan_file "$filename"
-    done
-        debug "stopping daemon"
-    else
-        # cli mode, scan watch folder once
-        debug "checking dir $WATCH_FOLDER"
-        scan_dir "$WATCH_FOLDER"
+                    debug "called inotifywait using /usr/bin/inotifywait --monitor
+                    --recursive --event create --event attrib --event moved_to --format '%f' $WATCH_FOLDER"
+                    scan_file "$filename"
+                done
+                debug "stopping daemon"
+            else
+                # cli mode, scan watch folder once
+                debug "checking dir $WATCH_FOLDER"
+                scan_dir "$WATCH_FOLDER"
     fi
 fi