Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
kiss: Don't error on git repository with no remote
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Sep 11, 2019
1 parent 8da4955 commit 465fc73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kiss
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,11 @@ pkg_updates() {
continue
}

[ "$(git remote 2>/dev/null)" ] || {
log "[$repo] No remote, skipping"
continue
}

case $repos in
# If the repository has already been updated, skip it.
*" $PWD "*) ;;
Expand Down Expand Up @@ -967,7 +972,7 @@ args() {
;;

v|version|-v|--version)
printf 'kiss 0.20.0\n'
printf 'kiss 0.20.1\n'
;;

h|help|-h|--help|'')
Expand Down

0 comments on commit 465fc73

Please sign in to comment.