projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT3511: doc fix; req default serial is random
[openssl.git]
/
test
/
bctest
diff --git
a/test/bctest
b/test/bctest
index 7dde7816531186cb3638d7472d352bac1deb8879..bdb3218f7acaa2cac934c96c62a402ba5677636c 100755
(executable)
--- a/
test/bctest
+++ b/
test/bctest
@@
-12,13
+12,13
@@
IFS=:
IFS=:
-try_
path
=true
+try_
without_dir
=true
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
- if [ "$try_
path
" = true ]; then
+ if [ "$try_
without_dir
" = true ]; then
# first iteration
bc=bc
# first iteration
bc=bc
- try_
path
=false
+ try_
without_dir
=false
else
# second and later iterations
bc="$dir/bc"
else
# second and later iterations
bc="$dir/bc"
@@
-104,5
+104,8
@@
EOF
done
echo "No working bc found. Consider installing GNU bc." >&2
done
echo "No working bc found. Consider installing GNU bc." >&2
-echo "cat >/dev/null"
+if [ "$1" = ignore ]; then
+ echo "cat >/dev/null"
+ exit 0
+fi
exit 1
exit 1