mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
"comma" syntax works with sbo search too
This commit is contained in:
parent
80d76362cc
commit
0000f11008
1 changed files with 5 additions and 1 deletions
|
@ -2390,7 +2390,11 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
searchlistEX "$LIST"
|
||||
echo -e "\nYou can search specific files using \"slackpkg file-search file\".\n"
|
||||
fi
|
||||
SBORESULT="$(grep -E -i "^SBO_[^ ]* [^ ]*${PATTERN/,/ }" $WORKDIR/pkglist 2>/dev/null|awk '{print $6}')"
|
||||
if [[ "${PATTERN}" =~ .*,$ ]];then
|
||||
SBORESULT="$(grep -E -i "^SBO_[^ ]* ${PATTERN/,/} " $WORKDIR/pkglist 2>/dev/null|awk '{print $6}')"
|
||||
else
|
||||
SBORESULT="$(grep -E -i "^SBO_[^ ]* [^ ]*${PATTERN}" $WORKDIR/pkglist 2>/dev/null|awk '{print $6}')"
|
||||
fi
|
||||
if [ ! -z "$SBORESULT" ];then
|
||||
echo
|
||||
echo "Also found in SBo (download it with 'slackpkg download <package>'):"
|
||||
|
|
Loading…
Reference in a new issue