Skip to content

Commit

Permalink
www: update checked html page (#3230)
Browse files Browse the repository at this point in the history
After the switch to Next.js, `/home/www/nodejs/en/index.html` no longer exists.
  • Loading branch information
richardlau authored Mar 21, 2023
1 parent 4451097 commit 04aa8b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible/www-standalone/resources/scripts/check-build-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ indexjson=/home/dist/${site}/release/index.json
indexhtml=/home/www/${site}/en/index.html
buildsite=/home/nodejs/build-site.sh

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

[ $indexjson -nt $indexhtml ] && $buildsite $site

0 comments on commit 04aa8b9

Please sign in to comment.