search target dir
parent
be267b4504
commit
6abd4e0607
|
@ -26,7 +26,7 @@ in
|
||||||
target=''${args[1]}
|
target=''${args[1]}
|
||||||
|
|
||||||
if [ -d "$target" ]; then
|
if [ -d "$target" ]; then
|
||||||
if [[ $(${pkgs.findutils}/bin/find /some/dir/ -maxdepth 0 -empty) -gt 0 ]]; then
|
if [[ $(${pkgs.findutils}/bin/find "$target" -maxdepth 0 -empty) -gt 0 ]]; then
|
||||||
echo "~ No Files in $target ~"
|
echo "~ No Files in $target ~"
|
||||||
else
|
else
|
||||||
echo "~ Found Files at $target ~"
|
echo "~ Found Files at $target ~"
|
||||||
|
|
Loading…
Reference in New Issue