simpler conditional

This commit is contained in:
Thomas Levine 2016-02-28 12:15:42 +00:00
parent c604face40
commit eab1525998

6
urchin
View File

@ -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