Skip to content

Commit 352a288

Browse files
committed
= code cleanup
1 parent 2a88bbd commit 352a288

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/cp-into-docker-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ cleanupWhenExit() {
218218
# remove tmp dir in docker by root user
219219
docker exec "${container_name}" rm -rf -- "$work_tmp_dir_in_docker" &>/dev/null
220220
}
221-
trap "cleanupWhenExit" EXIT
221+
trap cleanupWhenExit EXIT
222222

223223
########################################
224224
# docker operations

bin/show-busy-java-threads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ mkdir -p "$tmp_store_dir"
358358
cleanupWhenExit() {
359359
rm -rf "$tmp_store_dir" &>/dev/null
360360
}
361-
trap "cleanupWhenExit" EXIT
361+
trap cleanupWhenExit EXIT
362362

363363
headInfo() {
364364
colorEcho "0;34;42" ================================================================================

legacy-bin/svn-merge-stop-on-copy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ target=${2:-.}
6161
}
6262
} || workDir="$target"
6363

64-
cleanup() {
64+
cleanupWhenExit() {
6565
[ "$workDir" != "$target" ] && {
6666
echo "rm tmp dir $workDir ."
6767
rm -rf "$workDir"
6868
}
6969
}
70-
trap "cleanup" EXIT
70+
trap cleanupWhenExit EXIT
7171

7272
svn_status_line=$(svn status --ignore-externals "$workDir" | grep -c -v ^X)
7373
[ "$svn_status_line" -ne 0 ] && {

0 commit comments

Comments
 (0)