From dd3152be0442e577692067c5523da4f5ab9d9957 Mon Sep 17 00:00:00 2001 From: cassio Date: Sun, 30 Aug 2015 23:11:57 +0100 Subject: multiple bugs to make submission by command line --- tools/etc/icpc/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/etc/icpc/setup.sh') diff --git a/tools/etc/icpc/setup.sh b/tools/etc/icpc/setup.sh index da5a334..5d8838f 100755 --- a/tools/etc/icpc/setup.sh +++ b/tools/etc/icpc/setup.sh @@ -15,7 +15,8 @@ If this is supposed to be the server, then leave it empty\nIf there are multiple fi FIRSTBOCA=`echo $IP | cut -d';' -f1` echo "BOCASERVER=$FIRSTBOCA" > /etc/icpc/bocaserver.sh - if [ "`echo $IP | cut -d';' -f2-`" != "" ]; then + echo $IP | grep -q ';' + if [ "$?" == "0" ]; then echo "BOCASERVERS=`echo $IP | cut -d';' -f2-`" >> /etc/icpc/bocaserver.sh fi echo "$FIRSTBOCA boca boca" >> /etc/hosts -- cgit v1.2.3