Kaynağa Gözat

Add prefix to stager.sh output

master
Roelf Wichertjes 2 yıl önce
ebeveyn
işleme
678833eea0
İmzalayan: rewby GPG Anahtar Kimliği: 4C2B6D2972EE5423
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +5
    -5
      stager.sh

+ 5
- 5
stager.sh Dosyayı Görüntüle

@@ -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


Yükleniyor…
İptal
Kaydet