aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-11 15:04:04 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-11 15:04:04 +0000
commit6f6d25ade97025b10c1a8a7360c85edee46339f8 (patch)
tree8aa432e5391f1c40944306eab8710dcf818b80a5
parentb7716ead1f36d7895bed21385d70e3eb9fdee263 (diff)
downloadcpt-6f6d25ade97025b10c1a8a7360c85edee46339f8.tar.gz
kiss: Don't error on git repository with no remote
FossilOrigin-Name: 5f93eee59a1ccb69ca6a28e3d56b917cf4fbcb15a8db0968327d68778ac71244
-rwxr-xr-xkiss7
1 files changed, 6 insertions, 1 deletions
diff --git a/kiss b/kiss
index ce4e18b..d9347dc 100755
--- a/kiss
+++ b/kiss
@@ -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 "*) ;;
@@ -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|'')