-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.sh
executable file
·65 lines (53 loc) · 2.25 KB
/
status.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
if test -f .INSTALLED; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) system installed";
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) db does not appear to be installed. SOLUTION: ./install.sh";
fi
if command -v node &> /dev/null; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) node is installed"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) node is not installed. SOLUTION: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash; nvm install node";
fi
if command -v montage &> /dev/null; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) ImageMagick found"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) ImageMagick not found. SOLUTION: install imagemagick"
fi
if command -v ffmpeg &> /dev/null; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) FFMPEG found"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) FFMPEG not found. SOLUTION: install ffmpeg"
fi
if command -v eternia &> /dev/null; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) eternia is installed"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) eternia not found. SOLUTION: npm -g i eternia"
fi
if command -v http-server &> /dev/null; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) hs (http-server) is installed"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) http-server not found. SOLUTION: npm -g i http-server"
fi
if [[ -z $(cd bin; git status -s) ]]; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) bin is in sync"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) bin has uncommited changes. SOLUTION: ./system-publish.sh"
fi
if [[ -z $(git status -s) ]]; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) db is in sync"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) db has uncommited changes. SOLUTION: ./system-publish.sh"
fi
if [[ -z $(cd themes; git status -s) ]]; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) record themes are in sync"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) record themes have uncommited changes. SOLUTION: ./system-publish.sh"
fi
if [[ -z $(cd templates; git status -s) ]]; then
echo "$(tput setaf 2)[OK]$(tput sgr 0) record templates are in sync"
else
echo "$(tput setaf 1)[NO]$(tput sgr 0) record templates have uncommited changes. SOLUTION: ./system-publish.sh"
fi
./bin/test-submodules/index.sh
echo "$(tput setaf 2)[OK]$(tput sgr 0) test completed";