Skip to content

Commit

Permalink
Improved the build tool.
Browse files Browse the repository at this point in the history
Allows to specify an empty base-url.
  • Loading branch information
cotes2020 committed Aug 1, 2020
1 parent 65e0ef8 commit 2581b38
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit 2581b38

Please sign in to comment.