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