From 5533bde2588fd39c3939b66998d32a76aae6fd10 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 25 Nov 2017 10:55:14 -0600 Subject: [PATCH] better testing of XSCE --- runansible | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runansible b/runansible index ef74c1a06..ab0f7e488 100755 --- a/runansible +++ b/runansible @@ -31,8 +31,8 @@ fi # iiab.env gets created at the end of stage-4 on First Run if [ -f /etc/iiab/iiab.env ] then - OLD=`grep XSCE /etc/iiab/iiab.env` - if [ x"$OLD" != "x" ] + OLD=`grep XSCE /etc/iiab/iiab.env| wc -l` + if [ "$OLD" -gt 0 ] then rm /etc/iiab/iiab.env else