From 6cb936111f60cefc5627e5eeae802a4912eced2e Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Thu, 12 Jul 2018 22:24:42 +0000
Subject: [PATCH] Try fixing yarn

---
 scripts/hab-build-and-push.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/hab-build-and-push.sh b/scripts/hab-build-and-push.sh
index 79de8880c..286dd48c0 100755
--- a/scripts/hab-build-and-push.sh
+++ b/scripts/hab-build-and-push.sh
@@ -21,11 +21,12 @@ mkdir -p build
 # https://github.com/yarnpkg/yarn/issues/4628
 mkdir -p /usr/local/share
 
-[[ ! -f /usr/bin/env ]] && ln -s "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env
+rm /usr/bin/env
+ln -s "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env
 hab pkg install -b core/coreutils core/bash core/node core/yarn core/aws-cli
 
 yarn install --cache-folder .yarn
-GENERATE_SMOKE_TESTS=true yarn build --output-path build
+GENERATE_SMOKE_TESTS=true yarn build -- --output-path build
 mkdir build/pages
 mv build/*.html build/pages
 
-- 
GitLab