File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,6 @@ function assert_file_eq() {
5252 fail " file $1 does not contain '$2 ': $( cat $1 ) "
5353}
5454
55- function finish() {
56- if [ $? -ne 0 ]; then
57- echo " The directory $DIR was not removed as it contains" \
58- " log files useful for debugging"
59- remove_sync_container
60- fi
61- }
62-
63- trap finish INT EXIT
64-
6555# #####################
6656# main
6757# #####################
@@ -80,6 +70,16 @@ if [[ -z "$DIR" ]]; then
8070fi
8171echo " test root is $DIR "
8272
73+ function finish() {
74+ if [ $? -ne 0 ]; then
75+ echo " The directory $DIR was not removed as it contains" \
76+ " log files useful for debugging"
77+ remove_sync_container
78+ fi
79+ }
80+
81+ trap finish INT EXIT
82+
8383CONTAINER_NAME=git-sync-$RANDOM
8484function GIT_SYNC() {
8585 # ./bin/linux_amd64/git-sync "$@"
You can’t perform that action at this time.
0 commit comments