diff options
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 () { |