mirror of
https://github.com/zuno/slackpkgplus
synced 2025-01-13 20:01:04 +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"
|
searchlistEX "$LIST"
|
||||||
echo -e "\nYou can search specific files using \"slackpkg file-search file\".\n"
|
echo -e "\nYou can search specific files using \"slackpkg file-search file\".\n"
|
||||||
fi
|
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
|
if [ ! -z "$SBORESULT" ];then
|
||||||
echo
|
echo
|
||||||
echo "Also found in SBo (download it with 'slackpkg download <package>'):"
|
echo "Also found in SBo (download it with 'slackpkg download <package>'):"
|
||||||
|
|
Loading…
Reference in a new issue