-
Notifications
You must be signed in to change notification settings - Fork 89
/
hexo-theme-next-autoinstall.sh
31 lines (27 loc) · 1.2 KB
/
hexo-theme-next-autoinstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# ================================================================== #
# Shell script to autoinstall Hexo & NexT & NexT website source.
# ================================================================== #
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo
echo "=============================================================="
echo " Installing Hexo & NPM modules..."
echo "=============================================================="
npm install
echo
echo "=============================================================="
echo " Cloning NexT theme & Adding needed modules..."
echo "=============================================================="
git clone https://github.com/theme-next/hexo-theme-next themes/next --depth=1
echo
echo "=============================================================="
echo " Checking Hexo version..."
echo "=============================================================="
npx hexo -v
cat package.json
echo
echo "=============================================================="
echo " Strarting Hexo server on \"http://localhost:4000\"..."
echo "=============================================================="
npx hexo s