kiss: Clean up

This commit is contained in:
Dylan Araps 2020-03-25 17:03:06 +02:00
parent f1b551db4e
commit 8f111e0fc1
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

10
kiss
View File

@ -1036,15 +1036,9 @@ pkg_updates() {
cd "$repo"
cd "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null ||:
[ -d .git ] || {
[ -d .git ] || [ "$(git remote 2>/dev/null)" ] || {
log "$repo" " "
printf '%s\n' "Not a git repository, skipping."
continue
}
[ "$(git remote 2>/dev/null)" ] || {
log "$repo" " "
printf '%s\n' "No remote, skipping."
printf '%s\n' "Not a git repository or no remote, skipping."
continue
}