Skip to content

Commit 04aa8b9

Browse files
authored
www: update checked html page (#3230)
After the switch to Next.js, `/home/www/nodejs/en/index.html` no longer exists.
1 parent 4451097 commit 04aa8b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ansible/www-standalone/resources/scripts/check-build-site.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ indexjson=/home/dist/${site}/release/index.json
1111
indexhtml=/home/www/${site}/en/index.html
1212
buildsite=/home/nodejs/build-site.sh
1313

14-
[ $indexjson -nt $indexhtml ] && $buildsite $site
14+
[ "X$site" = "Xnodejs" ] && indexhtml=/home/www/nodejs/en.html
15+
16+
[ $indexjson -nt $indexhtml ] && $buildsite $site

0 commit comments

Comments
 (0)