From d3aba68a0cb4d4fe8b55e4e97403c72ecfe67f35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Kr=C3=BCger?= Date: Tue, 18 Jun 2013 01:25:33 +0200 Subject: [PATCH] xonotic-map-compiler-optionsfile: fix check if file exists. --- misc/tools/xonotic-map-compiler-optionsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2