find again

main
Zynh Ludwig 2024-08-01 03:38:03 -07:00
parent c819235262
commit c3d64c3c31
1 changed files with 1 additions and 3 deletions

View File

@ -26,9 +26,7 @@ in
target=''${args[1]}
if [ -d "$target" ]; then
files=(''${target}/*)
if [[ $(#$files[@]) -gt 0 ]]; then
if [[ $(${pkgs.findutils}/bin/find /some/dir/ -maxdepth 0 -empty) -gt 0 ]]; then
echo "~ Found Files at $target ~"
else
echo "~ No Files in $target ~"