summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-03 21:04:22 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:01:07 -0600
commit949014bc2dec8757d4a01af1e1d3dc7f394fe9a5 (patch)
tree2eb84383e113524738c829c6df095307f4e84fcf
parentef468d692bee233b37d7853098612c5b2d17423f (diff)
librelib: print to stderr if it can't find the library
-rwxr-xr-xsrc/librelib1
-rw-r--r--test/librelib-test.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/librelib b/src/librelib
index 3b12c93..dc4969f 100755
--- a/src/librelib
+++ b/src/librelib
@@ -64,6 +64,7 @@ main() {
return 0;
fi
done
+ printf 'librelib: could not find library `%s`\n' "$lib" >> /dev/stderr
return 1
}
diff --git a/test/librelib-test.sh b/test/librelib-test.sh
index aeb9a8c..8cc2a65 100644
--- a/test/librelib-test.sh
+++ b/test/librelib-test.sh
@@ -67,6 +67,6 @@ it_fails_to_find_phony() {
librelib phony >$tmpdir/stdout 2>$tmpdir/stderr || ret=$?
[[ -z "$(cat $tmpdir/stdout)" ]]
- [[ -z "$(cat $tmpdir/stderr)" ]]
+ [[ -n "$(cat $tmpdir/stderr)" ]]
[[ $ret != 0 ]]
}