Skip to content

Commit 9e59459

Browse files
committed
unpacker: don't loop if no archives found, for real this time
1 parent 62b7543 commit 9e59459

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

static/System/starts/1-archive-unpacker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
ARCHIVES_FOLDER="/mnt/SDCARD/System/archives"
66
ARCHIVES="$(find "$ARCHIVES_FOLDER" -type f -iname "*.zip")"
7-
ARCHIVE_COUNT="$(echo "$ARCHIVES" | wc -l)"
7+
ARCHIVE_COUNT="$(printf "$ARCHIVES" | wc -l)"
88
ARCHIVE_UNPACK_LOG="/mnt/SDCARD/System/log/archive_unpack.log"
99

1010
log_message "Unpacker: $ARCHIVE_COUNT archives found" "$ARCHIVE_UNPACK_LOG"

0 commit comments

Comments
 (0)