Просмотр исходного кода

only tries to move file if exists

Daniel Gibbs 10 лет назад
Родитель
Сommit
d5fc079b41
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      lgsm/functions/command_start.sh

+ 3 - 1
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}"