Skip to content

Commit

Permalink
Changed find.sh so that it always uses '.' as the path passed to find…
Browse files Browse the repository at this point in the history
… so that options like -path work the same way across platforms.
  • Loading branch information
amekkawi committed Apr 6, 2013
1 parent d7418b7 commit 335a635
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/find.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ if [ "$mode" == "find-printf" ]; then
[ "$delim" != "null" -a "$(find "$(command -v bash)" -printf "\\$delimoct")" != "$delim" ] \
&& echo "ERROR: find is not outputting the expected field delimiter." 1>&2 && exit 2

find "$real" -mindepth 1 "$@" -printf "%y\\$delimoct%TY-%Tm-%Td\\$delimoct%TH:%TM:%TS\\$delimoct%s\\$delimoct%P\n"
cd "$real"
find . -mindepth 1 "$@" -printf "%y\\$delimoct%TY-%Tm-%Td\\$delimoct%TH:%TM:%TS\\$delimoct%s\\$delimoct%P\n"
else

# Verify that the delim will output correctly.
Expand Down

0 comments on commit 335a635

Please sign in to comment.