diff options
author | Seppia <seppia@seppia.net> | 2018-06-03 12:30:13 +0200 |
---|---|---|
committer | Seppia <seppia@seppia.net> | 2018-06-03 12:30:13 +0200 |
commit | d826e70119d26f6166da2f8597d33fb4b2737e31 (patch) | |
tree | 3f3bea8203f7ba0e27309dfa442690f060cf7cd6 | |
parent | ef6a1c0d4ad8fce08b21794ee55b6126e4e7fd40 (diff) | |
download | repofish-d826e70119d26f6166da2f8597d33fb4b2737e31.tar.gz repofish-d826e70119d26f6166da2f8597d33fb4b2737e31.tar.bz2 repofish-d826e70119d26f6166da2f8597d33fb4b2737e31.zip |
Keyword message fix
Used echo instead of printf for used keyword message.
-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)"'/' } |