Commit 22c32bd6 authored by Kubernetes's avatar Kubernetes

Fixed a bug that led the temporary dirs to heap

parent c8d2c215
#!/bin/bash
#
# name: pingmon
# version: 1.0.0
# version: 1.0.1
# description: Performs connectivity testing and saves detailed reports when something goes wrong
# author: Volodymyr Melnyk <v.melnyk@tucha.ua>
#
......@@ -133,5 +133,6 @@ while :; do
[ ! -d "${log_directory}/${date}" ] && mkdir "${log_directory}/${date}"
mv ${tmp_directory} "${log_directory}/${date}/${time}"
fi
[ -d "${tmp_directory}" ] && rm -rf "${tmp_directory}"
sleep 1
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment