From fe72c02a44d998a757fdface18dd83b959468ddb Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 4 Oct 2023 14:49:10 +0200 Subject: xlocate: error when no pattern is given --- xlocate | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlocate') 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 -- cgit 1.4.1