From 3b0cf90f5c7e2148b596dc0e593d482690a0da43 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 29 Jul 2020 02:15:53 +0800 Subject: [PATCH] Improved the build tool. Allows to specify an empty base-url. --- tools/build.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/build.sh b/tools/build.sh index 3381d5a..d99b67f 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -86,14 +86,11 @@ main() { opt="$1" case $opt in -b|--baseurl) - _check_unset $2 - if [[ $2 == \/* ]] - then - CMD+=" -b $2" - else - _help - exit 1 + local _baseurl="$2" + if [[ -z "$_baseurl" ]]; then + _baseurl='""' fi + CMD+=" -b $_baseurl" shift shift ;;