diff options
-rwxr-xr-x | mgrep | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -94,13 +94,9 @@ if [[ -e $exclude ]] ; then done < "$exclude" fi -# Try to change into the path for find(1). This is just to prevent long -# prefixes in the output of `grep -h`. -cd -- "$path" || exit - # Run the find(1) command with its determined arguments, with an -exec option # calling grep(1) with its determined arguments. -find ./* \ +find "$path" \ -type f \ "${find_args[@]}" \ -exec \ |