Skip to content

Commit b43f2ea

Browse files
committed
fix: project name in build.sh
1 parent 1e6e24a commit b43f2ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $OHOW --version >/dev/null || {
99
}
1010

1111
OUT=home
12-
[ "$1" = '-l' ] && local=' --local'
12+
[ "$1" = '-l' ] && local=--local || local=
1313

1414
# NOTE redirections have to be done this way because: GitHub Pages uses
1515
# symlinks to change the displayed page but the URL is not
@@ -27,12 +27,12 @@ EOF
2727
}
2828

2929
export HOW_HACK_NOPROJECT=t
30-
options="--project 'githubio' --api api --manual src --images img --assets download --template template/homepage-template.wiki$local"
30+
options="--project githubio --api api --manual src --images img --assets download --template template/homepage-template.wiki"
3131

3232
mkdir -p $OUT
3333
find src -name '*.wiki' -exec basename {} \; | while read -r wiki; do
3434
html=${wiki%wiki}html
35-
$OHOW $options -o $OUT/$html src/$wiki || exit 2
35+
$OHOW $options $local -o $OUT/$html src/$wiki || exit 2
3636
make-redir "$OUT/$(basename $html)" $html
3737
done
3838
make-redir "$OUT/intro.html" index.html

0 commit comments

Comments
 (0)