From 678833eea0ae06b5be7a9d62a505d4051df948ee Mon Sep 17 00:00:00 2001 From: Roelf Wichertjes Date: Wed, 2 Mar 2022 19:48:47 +0100 Subject: [PATCH] Add prefix to stager.sh output --- stager.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stager.sh b/stager.sh index 78df4fc..7da9c33 100755 --- a/stager.sh +++ b/stager.sh @@ -6,15 +6,15 @@ STAGING="$2" OUTPUT="$3" while true ; do - echo "Attempting to move files..." + echo "[Stager] Attempting to move files..." COUNT=$(find "$INPUT" -type f | wc -l) if [[ $COUNT -ne 0 ]]; then - echo "Found $COUNT files!" - echo "Moving from input to staging..." + echo "[Stager] Found $COUNT files!" + echo "[Stager] Moving from input to staging..." mv -v "$INPUT"/* "$STAGING/" || true - echo "Atomically moving from staging to output..." + echo "[Stager] Atomically moving from staging to output..." mv -v "$STAGING"/* "$OUTPUT/" || true fi - sleep 5 + sleep 30 done