diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-10-22 21:05:47 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-10-24 11:19:24 -0400 |
commit | 3c8233869d34713860c48b1230c3ea06b8767b88 (patch) | |
tree | d2c95dd2370cfd8b1255c08c83b953c29ccd91f2 /tests/remove-sibling.sh | |
parent | 087b29c53e13299e195942e48ae309817f4f1d93 (diff) | |
download | bfs-3c8233869d34713860c48b1230c3ea06b8767b88.tar.xz |
Implement -ignore_readdir_race.
Diffstat (limited to 'tests/remove-sibling.sh')
-rwxr-xr-x | tests/remove-sibling.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/remove-sibling.sh b/tests/remove-sibling.sh new file mode 100755 index 0000000..ddf81d7 --- /dev/null +++ b/tests/remove-sibling.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +for file in "${1%/*}"/*; do + if [ "$file" != "$1" ]; then + rm "$file" + exit $? + fi +done + +exit 1 |