diff --git a/Utility/Log.sh b/Utility/Log.sh index c24c946..3ef8943 100755 --- a/Utility/Log.sh +++ b/Utility/Log.sh @@ -9,6 +9,9 @@ log() { if [ ! -d "$LOGDIR" ]; then mkdir -p "$LOGDIR" fi + if [ ! -f "$LOGFILE" ]; then + touch "$LOGFILE" + fi echo "$(date +'%Y-%m-%d %H:%M:%S') - $1" | tee -a "$LOGFILE" }