Skip to content
Snippets Groups Projects
Unverified Commit 19305312 authored by David Hoese's avatar David Hoese
Browse files

Fix work_dir function

parent 45f203a7
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ day_before() { ...@@ -28,7 +28,7 @@ day_before() {
} }
work_dir() { work_dir() {
mktemp -d --tmpdir="$WORKDIR" "work_$1_" mktemp -d --tmpdir="$WORKDIR" "work_$1_XXXXXXXXXX" || oops "Could not create work directory: $1"
} }
cache_level_00_file() { cache_level_00_file() {
......
...@@ -59,6 +59,9 @@ fi ...@@ -59,6 +59,9 @@ fi
log_info "Moving Level B1 quicklooks from temp directory to cache" log_info "Moving Level B1 quicklooks from temp directory to cache"
$ENV/bin/python -m metobscommon.archive.incoming -vv -l $logfile --dates=${DATE} b1 aoss.tower "$tmp_dir/aoss_tower.*.png" || oops "Quicklook archive failed" $ENV/bin/python -m metobscommon.archive.incoming -vv -l $logfile --dates=${DATE} b1 aoss.tower "$tmp_dir/aoss_tower.*.png" || oops "Quicklook archive failed"
# Delete the working directory
rm -rf $tmp_dir || oops "Could not delete working directory: $tmp_dir"
log_info "Done" log_info "Done"
) 200>$LOCK ) 200>$LOCK
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment