\d does not work on some grep dist
This commit is contained in:
parent
981710ae6f
commit
ebe160d808
@ -181,7 +181,7 @@ function rbash-list {
|
||||
echo "Available sources:"
|
||||
local _k
|
||||
for i in `__download "$RBASH_REMOTE/api/v1/repos/$RBASH_REPO/contents/$RBASH_PATH/sources/" | jq -r '.[].name'`; do
|
||||
_k=`echo -n $i | grep -o "^\d\+"`
|
||||
_k=`echo -n $i | grep -o "^[0-9]\+"`
|
||||
_RBASH_DICT["s$_k"]=$i
|
||||
grep -q -e "^rbash_load \"sources/$i\"\$" "$RBASH_CONFIG"
|
||||
if [ $? -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user