fix: Fixes find latest function.

This commit is contained in:
2025-04-03 08:53:00 -04:00
parent 547cc41436
commit 30ac84ecac

View File

@@ -3,5 +3,5 @@
# Find the last modified file in a directory.
function find-latest() {
local dir=$1
echo "$(find $dir -maxdepth 1 -mindepth 1 -type f -ctime 30 | sort -nr | head -1)"
echo "$(find $dir -maxdepth 1 -mindepth 1 -type f | sort -nr | head -1)"
}