From 5a588c02f6a91cb0c542c8ceffd1c6f820999e8a Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 3 Aug 2008 19:47:46 +0200 Subject: [PATCH] tg-update.sh: Abort on missing dependencies --- tg-update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tg-update.sh b/tg-update.sh index ec14bf6..5bd9de5 100644 --- a/tg-update.sh +++ b/tg-update.sh @@ -22,7 +22,9 @@ base_rev="$(git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null)" ## First, take care of our base depcheck="$(mktemp)" +missing_deps= needs_update "$name" >"$depcheck" +[ -z "$missing_deps" ] || die "some dependencies are missing: $missing_deps" if [ -s "$depcheck" ]; then # We need to switch to the base branch # ...but only if we aren't there yet (from failed previous merge) -- 2.30.2