From 1a7e7014935ce16633ba091e9937622a812eab1d Mon Sep 17 00:00:00 2001 From: Matt Russell Date: Fri, 10 Jun 2016 14:48:43 +0100 Subject: [PATCH] Use process id in temporary sort directory name. Allows parallel processing of EDN logs. --- scripts/sort-edn-log.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/sort-edn-log.sh b/scripts/sort-edn-log.sh index 7aa820b..312f434 100755 --- a/scripts/sort-edn-log.sh +++ b/scripts/sort-edn-log.sh @@ -17,7 +17,7 @@ fi sorted_filename="$(echo $log_filename | sed 's/.gz$/.sort.gz/')" -tmp_sort_dir="sort-temp" +tmp_sort_dir="sort-temp$$" cd $log_dir @@ -34,4 +34,3 @@ else exit 1 fi rmdir "$tmp_sort_dir" -