Improved the build tool.
Allows to specify an empty base-url.
This commit is contained in:
parent
4675d42f90
commit
3b0cf90f5c
1 changed files with 4 additions and 7 deletions
|
@ -86,14 +86,11 @@ main() {
|
||||||
opt="$1"
|
opt="$1"
|
||||||
case $opt in
|
case $opt in
|
||||||
-b|--baseurl)
|
-b|--baseurl)
|
||||||
_check_unset $2
|
local _baseurl="$2"
|
||||||
if [[ $2 == \/* ]]
|
if [[ -z "$_baseurl" ]]; then
|
||||||
then
|
_baseurl='""'
|
||||||
CMD+=" -b $2"
|
|
||||||
else
|
|
||||||
_help
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
CMD+=" -b $_baseurl"
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue