diff options
author | Leah Neukirchen <leah@vuxu.org> | 2023-10-04 14:49:10 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2023-10-04 14:49:10 +0200 |
commit | fe72c02a44d998a757fdface18dd83b959468ddb (patch) | |
tree | 706f1ef8558de296ae20e11cadd442a83d4cc8d4 /xlocate | |
parent | f383da4a456ad64cf0a2f26f0f1a98933064cc8e (diff) | |
download | xtools-fe72c02a44d998a757fdface18dd83b959468ddb.tar.gz xtools-fe72c02a44d998a757fdface18dd83b959468ddb.tar.xz xtools-fe72c02a44d998a757fdface18dd83b959468ddb.zip |
xlocate: error when no pattern is given
Diffstat (limited to 'xlocate')
-rwxr-xr-x | xlocate | 3 |
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 |