We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26554bb commit ccea38aCopy full SHA for ccea38a
1 file changed
static/System/starts/1-archive-unpacker.sh
@@ -3,18 +3,9 @@
3
. /mnt/SDCARD/System/scripts/helpers.sh
4
5
ARCHIVES_FOLDER="/mnt/SDCARD/System/archives"
6
-ARCHIVES="$(find "$ARCHIVES_FOLDER" -type f -iname "*.zip")"
7
-ARCHIVE_COUNT="$(printf "$ARCHIVES" | wc -l)"
8
ARCHIVE_UNPACK_LOG="/mnt/SDCARD/System/log/archive_unpack.log"
9
10
-log_message "Unpacker: $ARCHIVE_COUNT archives found" "$ARCHIVE_UNPACK_LOG"
11
-
12
-if [ "$ARCHIVE_COUNT" -eq 0 ]; then
13
- log_message "Unpacker: no archives to unpack" "$ARCHIVE_UNPACK_LOG"
14
- exit 0
15
-fi
16
17
-echo "$ARCHIVES" | while IFS= read -r archive; do
+find "$ARCHIVES_FOLDER" -type f -iname "*.zip" | while read -r archive; do
18
basename="$(basename "$archive")"
19
log_message "Unpacker: unpacking archive $basename"
20
display -t "Unpacking $basename"
0 commit comments