Do not unsert _RBASH_DICT
This commit is contained in:
parent
ebe160d808
commit
0f834521dd
@ -172,12 +172,10 @@ function _require_jq {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare -A _RBASH_DICT
|
||||||
function rbash-list {
|
function rbash-list {
|
||||||
_require_jq || return 1
|
_require_jq || return 1
|
||||||
|
|
||||||
unset _RBASH_DICT
|
|
||||||
declare -A _RBASH_DICT
|
|
||||||
|
|
||||||
echo "Available sources:"
|
echo "Available sources:"
|
||||||
local _k
|
local _k
|
||||||
for i in `__download "$RBASH_REMOTE/api/v1/repos/$RBASH_REPO/contents/$RBASH_PATH/sources/" | jq -r '.[].name'`; do
|
for i in `__download "$RBASH_REMOTE/api/v1/repos/$RBASH_REPO/contents/$RBASH_PATH/sources/" | jq -r '.[].name'`; do
|
||||||
|
Loading…
Reference in New Issue
Block a user