kiss: Don't error on git repository with no remote

This commit is contained in:
Dylan Araps 2019-09-11 18:04:05 +03:00
parent 8da4955641
commit 465fc7303c

7
kiss
View File

@ -764,6 +764,11 @@ pkg_updates() {
continue continue
} }
[ "$(git remote 2>/dev/null)" ] || {
log "[$repo] No remote, skipping"
continue
}
case $repos in case $repos in
# If the repository has already been updated, skip it. # If the repository has already been updated, skip it.
*" $PWD "*) ;; *" $PWD "*) ;;
@ -967,7 +972,7 @@ args() {
;; ;;
v|version|-v|--version) v|version|-v|--version)
printf 'kiss 0.20.0\n' printf 'kiss 0.20.1\n'
;; ;;
h|help|-h|--help|'') h|help|-h|--help|'')