simpler conditional
This commit is contained in:
parent
c604face40
commit
eab1525998
6
urchin
6
urchin
@ -90,11 +90,9 @@ recurse() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if echo "$requested_path" | grep "^$potential_test" > /dev/null ||
|
echo "$requested_path" | grep "^$potential_test" > /dev/null ||
|
||||||
echo "$potential_test" | grep "^$requested_path" > /dev/null; then
|
echo "$potential_test" | grep "^$requested_path" > /dev/null ||
|
||||||
else
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
|
||||||
|
|
||||||
if test $(echo "$potential_test" | wc -l) -ne 1; then
|
if test $(echo "$potential_test" | wc -l) -ne 1; then
|
||||||
echo 'Test file names may not contain newline characters.' >&2
|
echo 'Test file names may not contain newline characters.' >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user