Skip to content

Commit 0a37a65

Browse files
committed
Fix warnings in examples/**/test_all
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments. Just move the `-type d` argument at the end of the command.
1 parent 0d67b52 commit 0a37a65

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/mysql/test_all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
export DATABASE_URL="mysql://localhost/diesel_example"
55

6-
for dir in $(find . -type d -maxdepth 1 -mindepth 1); do
6+
for dir in $(find . -maxdepth 1 -mindepth 1 -type d); do
77
cd $dir
88
../../../bin/diesel database reset
99
cargo build

examples/postgres/test_all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
export DATABASE_URL="postgres://localhost/diesel_examples"
55

6-
for dir in $(find . -type d -maxdepth 1 -mindepth 1); do
6+
for dir in $(find . -maxdepth 1 -mindepth 1 -type d); do
77
cd $dir
88
../../../bin/diesel database reset
99
cargo build

examples/test_all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
set -e
33

4-
for dir in $(find . -type d -maxdepth 1 -mindepth 1); do
4+
for dir in $(find . -maxdepth 1 -mindepth 1 -type d); do
55
(cd $dir && ./test_all)
66
done

0 commit comments

Comments
 (0)