From: Matthias Krüger Date: Mon, 17 Jun 2013 23:25:33 +0000 (+0200) Subject: xonotic-map-compiler-optionsfile: fix check if file exists. X-Git-Tag: xonotic-v0.8.0~108 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d3aba68a0cb4d4fe8b55e4e97403c72ecfe67f35;p=xonotic%2Fxonotic.git xonotic-map-compiler-optionsfile: fix check if file exists. --- diff --git a/misc/tools/xonotic-map-compiler-optionsfile b/misc/tools/xonotic-map-compiler-optionsfile index efd315b1..eb614eb2 100755 --- a/misc/tools/xonotic-map-compiler-optionsfile +++ b/misc/tools/xonotic-map-compiler-optionsfile @@ -13,7 +13,7 @@ fi mkdir -p ~/.xonotic-map-compiler-autobuild/ # to store map compile times in tstart=`date +%s` -if [ -f "~/.xonotic-map-compiler-autobuild/${M:30}" ] ; then +if [ -f ~/.xonotic-map-compiler-autobuild/${M:30} ] ; then lasttime=`cat ~/.xonotic-map-compiler-autobuild/${M:30} 2>/dev/null` # oppress warnings if file doesn't exist echo "Done in approximately $(($lasttime/60)) minutes." fi