summaryrefslogtreecommitdiffstats
path: root/repofish
diff options
context:
space:
mode:
Diffstat (limited to 'repofish')
-rwxr-xr-xrepofish3
1 files changed, 3 insertions, 0 deletions
diff --git a/repofish b/repofish
index 3fcdc33..8835a2d 100755
--- a/repofish
+++ b/repofish
@@ -181,6 +181,9 @@ archive_repo_packages() {
search_packages() {
declare -a key=("${!1}")
LIST_INST=$($0 list | tail -n +2 | tr '\n' '|')
+ if [ "$LIST_INST" == '' ]; then
+ LIST_INST=$(head -c 9 /dev/urandom | base32)
+ fi
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' \