Skip to content

Commit 308c949

Browse files
committed
Fix condition check for repository identification in explore function
1 parent 7c20cdd commit 308c949

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ explore() {
467467
local is_repo=false
468468
local is_user=false
469469
local got_orgs=false
470-
[[ "$node" =~ .*\/.* ]] && is_repo=true || is_user=true
470+
[[ ! "$node" =~ .*\/.* ]] || is_repo=true
471471
[ "$is_repo" = true ] && local graph=("stargazers" "watchers" "forks" "collaborators") || local graph=("followers" "following" "people")
472472
[ -z "$2" ] || graph=("$2")
473473

0 commit comments

Comments
 (0)