Update build.sh to install mdl with sudo.

This commit is contained in:
Anduin Xue 2023-05-12 17:42:19 +00:00 committed by GitHub
parent d7d4809c7f
commit 89f11f9d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ tput setaf 2; echo "Cleaning up..."; tput sgr0
rm ./node_modules -rf rm ./node_modules -rf
tput setaf 2; echo "Installing markdown lint"; tput sgr0 tput setaf 2; echo "Installing markdown lint"; tput sgr0
gem install mdl gem install mdl || sudo gem install mdl
tput setaf 2; echo "Generating new readme and mkdocs"; tput sgr0 tput setaf 2; echo "Generating new readme and mkdocs"; tput sgr0
node ./.github/readme-generate.js node ./.github/readme-generate.js