From 3c8233869d34713860c48b1230c3ea06b8767b88 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 22 Oct 2016 21:05:47 -0400 Subject: Implement -ignore_readdir_race. --- tests/remove-sibling.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tests/remove-sibling.sh (limited to 'tests') 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 -- cgit v1.2.3