fixed error when file doesn't exist

This commit is contained in:
FezVrasta 2015-06-19 12:12:44 +02:00
parent aafff81ea4
commit 794a397d24

View File

@ -37,6 +37,7 @@ thejob=""
update=1
timestamp=$( date +%T )
cd $arkserverroot
touch arkversion # If the file doesn't exist
instver=`cat "arkversion"`
cd $steamcmdroot
bnumber=`./$steamcmdexec +login anonymous +app_info_print "376030" +quit | grep -EA 5 "^\s+\"public\"$" | grep -E "^\s+\"buildid\"\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -f3 | sed 's/^ //' | cut -c9-14`