diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/install.sh | 4 | ||||
| -rw-r--r-- | src/query.sh | 2 | 
2 files changed, 5 insertions, 1 deletions
| diff --git a/src/install.sh b/src/install.sh index c73a202..da8b7a2 100644 --- a/src/install.sh +++ b/src/install.sh @@ -67,6 +67,10 @@ run_postinstall () {  install () {      local packages=$@ +    if [ "$#" = "0" ]; then +        packages=$(ls ${INSTALLED_DIR}) +    fi +      local missing=""      for package in $packages; do          [ ! -f $package ] && missing="$missing $(basename $package)" diff --git a/src/query.sh b/src/query.sh index 0697005..d5571b0 100644 --- a/src/query.sh +++ b/src/query.sh @@ -1,7 +1,7 @@  #!/bin/sh  search () { -    find ${PACKAGES_DIR} -type f | sed "s,${PACKAGES_DIR}/,," | grep$(echo $@ | sed "s/ /\\|/g") +    find ${PACKAGES_DIR} -type f | sed "s,${PACKAGES_DIR}/,," | grep $(echo $@ | sed "s/ /\\|/g")  }  files () { | 
