diff options
author | Seppia <seppia@seppia.net> | 2018-06-03 22:19:11 +0200 |
---|---|---|
committer | Seppia <seppia@seppia.net> | 2018-06-03 22:19:11 +0200 |
commit | 7e4f119498b01e5d6497aa6b0cab840845fe63e2 (patch) | |
tree | 4ee04e3f69185108ed3d4ad93960e3700b1ff7b9 | |
parent | 2811cdec59473f84061c89c94243aa9e9dc0d88c (diff) | |
download | repofish-7e4f119498b01e5d6497aa6b0cab840845fe63e2.tar.gz repofish-7e4f119498b01e5d6497aa6b0cab840845fe63e2.tar.bz2 repofish-7e4f119498b01e5d6497aa6b0cab840845fe63e2.zip |
Check installed fix
Fixes breakage of the detection of already installed packages due to
description message addition in list function.
-rwxr-xr-x | repofish | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -165,7 +165,7 @@ update_repo() { search_packages() { declare -a key=("${!1}") - LIST_INST=$($0 list | tr '\n' '|') + LIST_INST=$($0 list | tail -n +2 | tr '\n' '|') CURL_JSN=$(curl -s $(echo ${URL_PREFIX}${SEARCH_STR}"${key[@]}" | sed -e 's/ /+/g')) 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' \ |