summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeppia <seppia@seppia.net>2018-06-03 12:30:13 +0200
committerSeppia <seppia@seppia.net>2018-06-03 12:30:13 +0200
commitd826e70119d26f6166da2f8597d33fb4b2737e31 (patch)
tree3f3bea8203f7ba0e27309dfa442690f060cf7cd6
parentef6a1c0d4ad8fce08b21794ee55b6126e4e7fd40 (diff)
downloadrepofish-d826e70119d26f6166da2f8597d33fb4b2737e31.tar.gz
repofish-d826e70119d26f6166da2f8597d33fb4b2737e31.tar.bz2
repofish-d826e70119d26f6166da2f8597d33fb4b2737e31.zip
Keyword message fix
Used echo instead of printf for used keyword message.
-rwxr-xr-xrepo.sh5
1 files 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)"'/'
}