aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/loc3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/loc b/bin/loc
index 642a081c..20ef432e 100755
--- a/bin/loc
+++ b/bin/loc
@@ -1,6 +1,7 @@
#!/bin/sh
if [ "$#" -eq 0 ] ; then
- printf 'loc: Need a search term\n'
+ printf >&2 'loc: Need a search term\n'
+ exit 2
fi
for pat ; do
find . -name '*'"$pat"'*'