From 33e84166395421c577f48c703e6d1170f1c19a5e Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 10 Aug 2023 19:38:31 +0000 Subject: [PATCH] Update Downloader.bash --- ra-rom-downloader/Downloader.bash | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ra-rom-downloader/Downloader.bash b/ra-rom-downloader/Downloader.bash index adc6b86..71785ba 100644 --- a/ra-rom-downloader/Downloader.bash +++ b/ra-rom-downloader/Downloader.bash @@ -133,14 +133,21 @@ DownloadRomCountSummary () { romCount=$(find "$romPath" -type f | wc -l) platformCount=$(find "/$romPath" -maxdepth 1 -mindepth 1 -type d | wc -l) log "$romCount ROMS downloaded on $platformCount different platforms!!!" - log "Platform breakdown:" + log "Platform breakdown...." + echo "Platform;Total;Released;Hack/Homebrew/Proto/Unlicensed" > temp for romfolder in $(find "/$romPath" -maxdepth 1 -mindepth 1 -type d); do platform="$(basename "$romfolder")" PlatformSelection romCount=$(find "$romPath/$platformFolder" -type f | wc -l) - log "$platformName - $romCount" + romSubCount=$(find "$romPath/$platformFolder" -mindepth 2 -type f | wc -l) + romMainCount=$(( $romCount - $romSubCount )) + echo "$platformName;$romCount;$romMainCount;$romSubCount" >> temp done + data=$(cat temp | column -s";" -t) + echo "$data" + rm temp } + #### Platforms PlatformSnes () { platformName="Super Nintentdo"