From 8e93e0ef2155e541f329d60a84a60454503f0670 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 12 Jul 2020 23:33:45 +0100 Subject: [PATCH] clear steamcmd log --- lgsm/functions/core_dl.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lgsm/functions/core_dl.sh b/lgsm/functions/core_dl.sh index 30c08b0df..438287540 100644 --- a/lgsm/functions/core_dl.sh +++ b/lgsm/functions/core_dl.sh @@ -41,6 +41,10 @@ fn_dl_steamcmd(){ # To do error checking for SteamCMD the output of steamcmd will be saved to a log. steamcmdlog="${lgsmlogdir}/${selfname}-steamcmd.log" + # clear previous steamcmd log + if [ -f "${steamcmdlog}" ]; then + rm -f "${steamcmdlog:?}" + fi counter=0 while [ "${counter}" == "0" ]||[ "${exitcode}" != "0" ]; do counter=$((counter+1))