Cleaned code a bit

This commit is contained in:
Massimo Scagliola 2023-07-04 20:24:57 +02:00
parent 8e1a742fbb
commit 839db835fd

View File

@ -148,7 +148,6 @@ while [ $COUNT -le $(cat ${SLOTS_FULL} | wc -l) ]; do
fi
log "### SLOT ${SLOT} - BARCODE ${BARCODE}"
for (( i = 0 ; i < ${PARALLELISM} ; i++ )); do # Look for an available drive
#log "scelta drive - ciclo numero ${i}"
if [ -f "${TMP}/.drive${i}.ready" ]; then # Look for "ready" file
DRIVE=${i}
mv "${TMP}/.drive${DRIVE}.ready" "${TMP}/.drive${DRIVE}.lock"