Browse Source

only tries to move file if exists

pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
d5fc079b41
  1. 2
      lgsm/functions/command_start.sh

2
lgsm/functions/command_start.sh

@ -68,8 +68,10 @@ fn_start_tmux(){
if [ "${status}" == "0" ]; then if [ "${status}" == "0" ]; then
fn_scriptlog "Rotating log files" fn_scriptlog "Rotating log files"
if [ "${engine}" == "unreal2" ]; then if [ "${engine}" == "unreal2" ]; then
if [ -f "${gamelog}" ]; then
mv "${gamelog}" "${gamelogdate}" mv "${gamelog}" "${gamelogdate}"
fi fi
fi
mv "${scriptlog}" "${scriptlogdate}" mv "${scriptlog}" "${scriptlogdate}"
mv "${consolelog}" "${consolelogdate}" mv "${consolelog}" "${consolelogdate}"
fi fi

Loading…
Cancel
Save