From cd37c80b9a69243e6c453373323a156f681119f5 Mon Sep 17 00:00:00 2001 From: Alex Grin Date: Mon, 21 Aug 2017 12:06:56 -0400 Subject: [PATCH] quotes --- build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.sh b/build/build.sh index 1863a0361..92c2c5e8f 100755 --- a/build/build.sh +++ b/build/build.sh @@ -84,7 +84,7 @@ DAEMON_URL_TEMPLATE=$(node -e "console.log(require(\"$ROOT/app/package.json\").l DAEMON_URL=$(echo ${DAEMON_URL_TEMPLATE//DAEMONVER/$DAEMON_VER} | sed "s/OSNAME/$OSNAME/g") DAEMON_VER_PATH="$BUILD_DIR/daemon.ver" echo "$DAEMON_VER_PATH" -if [[ ! -f $DAEMON_VER_PATH || ! -f $ROOT/app/dist/lbrynet-daemon || $(< $DAEMON_VER_PATH) != $DAEMON_VER ]]; then +if [[ ! -f $DAEMON_VER_PATH || ! -f $ROOT/app/dist/lbrynet-daemon || "$(< "$DAEMON_VER_PATH")" != "$DAEMON_VER" ]]; then wget --quiet "$DAEMON_URL" -O "$BUILD_DIR/daemon.zip" unzip "$BUILD_DIR/daemon.zip" -d "$ROOT/app/dist/" rm "$BUILD_DIR/daemon.zip"