From d5fc079b4167c56268e967ce06b70f1893d45461 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 8 May 2016 22:58:16 +0100 Subject: [PATCH] only tries to move file if exists --- lgsm/functions/command_start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh index b3cf88255..26dec454e 100644 --- a/lgsm/functions/command_start.sh +++ b/lgsm/functions/command_start.sh @@ -68,7 +68,9 @@ fn_start_tmux(){ if [ "${status}" == "0" ]; then fn_scriptlog "Rotating log files" if [ "${engine}" == "unreal2" ]; then - mv "${gamelog}" "${gamelogdate}" + if [ -f "${gamelog}" ]; then + mv "${gamelog}" "${gamelogdate}" + fi fi mv "${scriptlog}" "${scriptlogdate}" mv "${consolelog}" "${consolelogdate}"