Removed useless lines coz why not

This commit is contained in:
sherlock 2025-04-11 15:26:05 +05:30
parent d46358f2da
commit d309978375

View file

@ -28,9 +28,7 @@ while true; do
ls -l "$dir"
;;
3)
# Count .sh files in the given directory (errors hidden if none found)
sh_count=$(ls -1 "$dir"/*.sh 2>/dev/null | wc -l)
# Count subdirectories (using a trailing slash pattern)
dir_count=$(ls -d "$dir"/*/ 2>/dev/null | wc -w)
echo ".sh file count: $sh_count"
echo "Subdirectory count: $dir_count"