From e256328ee7d7da7884b02aaa840df6495ed14ea0 Mon Sep 17 00:00:00 2001 From: Artem Prilutskiy Date: Thu, 4 Aug 2016 13:39:24 +0300 Subject: [PATCH] build.sh improved :) --- OpenWRT/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OpenWRT/build.sh b/OpenWRT/build.sh index 8a45e25..72e4f06 100755 --- a/OpenWRT/build.sh +++ b/OpenWRT/build.sh @@ -3,10 +3,9 @@ PACKAGE=cronosagent PROJECT=$(pwd)/.. -OPENWRT=${HOME}/openwrt +OPENWRT=$HOME/openwrt -test -d $OPENWRT/package/$PACKAGE -if [ "$?" -eq "0" ] +if [ -d $OPENWRT/package/$PACKAGE ] then # Remove existing package in buildroot rm -rf $OPENWRT/package/$PACKAGE