about summary refs log tree commit diff
path: root/xlocate
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-10-04 14:49:10 +0200
committerLeah Neukirchen <leah@vuxu.org>2023-10-04 14:49:10 +0200
commitfe72c02a44d998a757fdface18dd83b959468ddb (patch)
tree706f1ef8558de296ae20e11cadd442a83d4cc8d4 /xlocate
parentf383da4a456ad64cf0a2f26f0f1a98933064cc8e (diff)
downloadxtools-fe72c02a44d998a757fdface18dd83b959468ddb.tar.gz
xtools-fe72c02a44d998a757fdface18dd83b959468ddb.tar.xz
xtools-fe72c02a44d998a757fdface18dd83b959468ddb.zip
xlocate: error when no pattern is given
Diffstat (limited to 'xlocate')
-rwxr-xr-xxlocate3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlocate b/xlocate
index 5892f55..7c0b2b8 100755
--- a/xlocate
+++ b/xlocate
@@ -91,6 +91,9 @@ if [ -n "$UPDATE" ]; then
 elif [ -n "$SYNC" ]; then
 	xsyncgit
 	exit $?
+elif [ $# = 0 ]; then
+	usage
+	exit 1
 fi
 
 if [ -d "$XLOCATE_GIT" ]; then