1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-05-08 09:48:38 +00:00

Improved the build tool.

Allows to specify an empty base-url.
This commit is contained in:
Cotes Chung
2020-07-29 02:15:53 +08:00
parent 4675d42f90
commit 3b0cf90f5c
+4 -7
View File
@@ -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
;;