mirror of
https://github.com/nortakales/flipper-zero-tonies.git
synced 2025-12-06 06:45:05 +01:00
Skip empty folders for directory generation
This commit is contained in:
parent
f65c8f1ef3
commit
464fddcc1f
2 changed files with 7 additions and 8 deletions
|
|
@ -1,6 +0,0 @@
|
|||
# scripts Tonies (0 files)
|
||||
|
||||
*Note: this file is automatically generated, do not edit manually*
|
||||
|
||||
| Folder | Filename |
|
||||
|--------|----------|
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "Building directory markdown files for known tonies"
|
||||
echo "Building directory markdown files for known Tonies"
|
||||
|
||||
while read -r LANG_DIR; do
|
||||
NFC_FILES=()
|
||||
|
|
@ -11,7 +11,12 @@ while read -r LANG_DIR; do
|
|||
FOLDER=$(basename "${LANG_DIR}")
|
||||
NFC_FILES_COUNT=${#NFC_FILES[@]}
|
||||
|
||||
echo "${FOLDER} has ${NFC_FILES_COUNT}"
|
||||
echo "${FOLDER} has ${NFC_FILES_COUNT}"
|
||||
if [ $NFC_FILES_COUNT = 0 ]; then
|
||||
echo " Skiping..."
|
||||
continue
|
||||
fi
|
||||
|
||||
{
|
||||
echo "# ${FOLDER} Tonies (${NFC_FILES_COUNT} files)"
|
||||
echo ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue