From d826e70119d26f6166da2f8597d33fb4b2737e31 Mon Sep 17 00:00:00 2001 From: Seppia Date: Sun, 3 Jun 2018 12:30:13 +0200 Subject: Keyword message fix Used echo instead of printf for used keyword message. --- repo.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/repo.sh b/repo.sh index 4f9c346..4bc1bc2 100755 --- a/repo.sh +++ b/repo.sh @@ -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)"'/' } -- cgit v1.2.3