HistoryPurge: Clearing 219 old commits

This commit is contained in:
xpk
2024-10-24 23:09:21 +08:00
commit d08b7cac59
348 changed files with 376141 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# Script to list all files recursively using recursive bash function
function listFileInDir {
find $1 -maxdepth 1 -type f
DirCount=$(find $1 -maxdepth 1 -mindepth 1 -type d | wc -l)
# Recursive case
if [ $DirCount -ge 1 ]; then
find $1 -maxdepth 1 -mindepth 1 -type d | while read d; do
echo Recursing into $d
listFileInDir $d
done
fi
}
listFileInDir $1