chore: update scripts to use Windows paths for books and music
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 57s

This commit is contained in:
2026-03-10 10:29:41 -07:00
committed by Naomi Carrigan
parent b799dae225
commit 4a00656870
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ IFS=$'\n'
# Initialize an empty string to hold the list of books in JSON-like format
books=""
filecount=$(find /home/naomi/cloud/Books -type f | wc -l)
filecount=$(find "/mnt/c/Users/accou/Documents/iDrive/Cloud-Drive_accounts@nhcarrigan.com/Books" -type f | wc -l)
echo "Found $filecount files."
current=0
# Loop over each file found by find
for file in $(find /home/naomi/cloud/Books -type f -print0 | tr '\0' '\n'); do
for file in $(find "/mnt/c/Users/accou/Documents/iDrive/Cloud-Drive_accounts@nhcarrigan.com/Books" -type f -print0 | tr '\0' '\n'); do
current=$((current + 1))
echo -ne "Processing $current/$filecount\r"
title=$(exiftool "$file" | grep "^Title\s*:" | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//')
+2 -2
View File
@@ -2,12 +2,12 @@ IFS=$'\n'
# Initialize an empty string to hold the list of songs in JSON-like format
songs=""
filecount=$(find /home/naomi/music -type f | wc -l)
filecount=$(find "/mnt/c/Users/accou/Music" -type f | wc -l)
echo "Found $filecount files."
current=0
# Loop over each file found by find
for file in $(find /home/naomi/music -type f -print0 | tr '\0' '\n'); do
for file in $(find "/mnt/c/Users/accou/Music" -type f -print0 | tr '\0' '\n'); do
current=$((current + 1))
echo -ne "Processing $current/$filecount\r"
title=$(mid3v2 -l "$file" | grep "TIT2\|TT2" | cut -d "=" -f 2)