Commit ba973713 authored by Wsuika's avatar Wsuika
Browse files

Update install_theme.sh

macOS sed -i 需要带一个字符串作为备份源文件的文件名称
parent a6b21c9a
Loading
Loading
Loading
Loading

scripts/install_theme.sh

100644 → 100755
+6 −1
Original line number Diff line number Diff line
@@ -6,4 +6,9 @@ if [ ! -d "mkdocs-material" ] ; then
  git clone --depth=1 https://github.com/OI-wiki/mkdocs-material.git
fi

if [ "$(uname)" == "Darwin" ] ; then
  # macOS sed -i 需要添加""表示不备份修改
  sed -i "" "s/name: 'material'/name: null\n  custom_dir: 'mkdocs-material\/material'\n  static_templates:\n    - 404.html/g" mkdocs.yml
else
  sed -i "s/name: 'material'/name: null\n  custom_dir: 'mkdocs-material\/material'\n  static_templates:\n    - 404.html/g" mkdocs.yml
fi
 No newline at end of file