aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rwxr-xr-xLibrary/Homebrew/cmd/update-bash.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update-bash.sh b/Library/Homebrew/cmd/update-bash.sh
index d38d6dc72..2b7e3d233 100755
--- a/Library/Homebrew/cmd/update-bash.sh
+++ b/Library/Homebrew/cmd/update-bash.sh
@@ -293,6 +293,9 @@ EOS
# this procedure will be removed in the future if it seems unnecessary
rename_taps_dir_if_necessary
+ # kill all of subprocess on interrupt
+ trap '{ pkill -P $$; wait; exit 130; }' SIGINT
+
for DIR in "$HOMEBREW_REPOSITORY" "$HOMEBREW_LIBRARY"/Taps/*/*
do
[[ -d "$DIR/.git" ]] || continue
@@ -306,6 +309,7 @@ EOS
done
wait
+ trap - SIGINT
for DIR in "$HOMEBREW_REPOSITORY" "$HOMEBREW_LIBRARY"/Taps/*/*
do