diff options
-rwxr-xr-x | repo.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -114,9 +114,8 @@ search_packages() { OUT_STR=$(jq -r '.results | .[] | [.Name, .Version], .Description' <<< ${CURL_JSN}) SEARCH_OUT=$(sed -e 's/\\//g' -e 's/\[/\\033\[1\;36m\[/g' -e 's/",/\\033\[1\;33m", \[\\033\[1\;32m/g' \ -e 's/\]/\\033\[1\;33m\]\\033\[1\;37m\]/g' <<< ${OUT_STR}) - printf 'You searched using the following keywords (matching package name and/or description): "' - printf '%s ' "${key[@]}" - printf '\b"\n' + echo -n 'You searched using the following keywords (matching package name and/or description): "' + echo ${key[@]}\" echo -e ${SEARCH_OUT} | sed -e 's/\[ /\n/g' -e 's/ *\] /\n\t/g' -e 's/", / /g' -e 's/"//g' | \ sed -E '/'"${LIST_INST::-1}"'[^-]/ s/$/ '"$(echo -e \\033\[1\;35m[ Installed ]\\033\[1\;37m)"'/' } |