Skip to content

Commit

Permalink
Clean up temp dir upon exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed May 1, 2017
1 parent e585128 commit 85294b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ if [ $status_code -ne 0 ]; then
echo "ERROR: $script_name failed to create tmp dir ($status_code) $tmp_dir" >&2
exit 2
fi
$verbose_mode && print_log_message -D "$script_name creating temp dir: $tmp_dir"
print_log_message -D "$script_name creating temp dir: $tmp_dir"

# temporary file
tmp_file="${tmp_dir}/http_resource_$$"
Expand Down Expand Up @@ -247,4 +247,4 @@ if [ $status_code -ne 0 ]; then
clean_up_and_exit -d "$tmp_dir" 3
fi

exit 0
clean_up_and_exit -d "$tmp_dir" 0

0 comments on commit 85294b5

Please sign in to comment.