From 3fc7b2b0223520287b7a9eeb0c542070d261105f Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 10 Aug 2020 13:46:50 -0700 Subject: [PATCH] combine-packs.sh: update to latest Includes extra info in fatal exit message. Signed-off-by: Kyle J. McKay --- jobd/combine-packs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jobd/combine-packs.sh b/jobd/combine-packs.sh index ca984cb..acd4c8d 100755 --- a/jobd/combine-packs.sh +++ b/jobd/combine-packs.sh @@ -1,7 +1,7 @@ #!/bin/sh # combine-packs.sh -- combine Git pack files -# Copyright (C) 2016,2017,2018 Kyle J. McKay. +# Copyright (C) 2016,2017,2018,2020 Kyle J. McKay. # All rights reserved # This program is free software: you can redistribute it and/or modify @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Version 1.2.2 +# Version 1.2.3 USAGE=" printf '%s\n' path-to-pack[.idx|.pack] ... | @@ -243,7 +243,7 @@ cleanup_on_exit() { [ -n "$td" ] && [ -e "$td/success" ] || ewf=1 [ -z "$td" ] || ! [ -e "$td" ] || rm -rf "$td" || : [ -z "$gdop" ] || [ -z "$zap" ] || command find -L "$gdop" -maxdepth 1 -type f -name "*.$zap" -exec rm -f '{}' + || : - [ -z "$ewf" ] || echo "combine_packs: exiting with failure" >&2 || : + [ -z "$ewf" ] || echo "combine-packs: exiting with failure${gd:+ (${gd##*/})}" >&2 || : } trap cleanup_on_exit EXIT -- 2.11.4.GIT