From dc3cdb5b0523e21537c88d0b49b64d2b8cbb8deb Mon Sep 17 00:00:00 2001 From: Equim Date: Mon, 22 Jan 2018 06:40:11 +0800 Subject: [PATCH] build: dos2unix build.sh --- build.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/build.sh b/build.sh index 93c24656..6fe68188 100644 --- a/build.sh +++ b/build.sh @@ -1,14 +1,14 @@ -#!/bin/bash -set -e - -# Install rice tool if not present -if ! [ -x "$(command -v rice)" ]; then - go get github.com/GeertJohan/go.rice/rice -fi - -# Clean the dist folder and build the assets -rm -rf assets/dist -npm run build - -# Embed the assets using rice -rice embed-go +#!/bin/bash +set -e + +# Install rice tool if not present +if ! [ -x "$(command -v rice)" ]; then + go get github.com/GeertJohan/go.rice/rice +fi + +# Clean the dist folder and build the assets +rm -rf assets/dist +npm run build + +# Embed the assets using rice +rice embed-go