diff options
author | davidovski <david@davidovski.xyz> | 2022-02-28 10:56:12 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-28 10:56:12 +0000 |
commit | 9c02706d857661ca68351ad932b129150db1bfe0 (patch) | |
tree | 4d802103be0cbf09d779dff4c13b00b186ca9601 /src/query.sh | |
parent | 8cd3822c9a2676849853678b8463b117346b4077 (diff) |
fixed search giving error for no queryv1.0.2
Diffstat (limited to 'src/query.sh')
-rw-r--r-- | src/query.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/query.sh b/src/query.sh index 1da2e2f..c13cbcf 100644 --- a/src/query.sh +++ b/src/query.sh @@ -10,7 +10,11 @@ list_installed () { } search () { - list | grep $(echo $@ | sed "s/ /\\|/g") + if [ $# = 0 ]; then + list + else + list | grep $(echo $@ | sed "s/ /\\|/g") + fi } files () { |