forked from salif/cli-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-games.sh
executable file
·43 lines (32 loc) · 1.01 KB
/
install-games.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
#!/bin/env bash
#this script will automatically install the node dependences and the python ones, it's just really simple
text_installed="dependencies installed correctly \n\n"
text_not_installed="dependencies not installed, please refer the problem log above"
printf "Installing Hangman dependencies... \n"
pip install -r requirements.txt
printf "Installing MazeEscape dependencies... \n"
cd $(dirname $0)/MazeEscape && npm install .
if [[ -d node_modules ]]; then
printf "MazeEscape $text_installed"
else
printf "MazeEscape $text_not_installed"
exit 1
fi
printf "Installing Snake dependencies... \n"
cd ../Snake && npm install .
if [[ -d node_modules ]]; then
printf "Snake $text_installed"
else
printf "Snake $text_not_installed"
exit 1
fi
printf "Installing TextAdventures dependencies... \n"
cd ../TextAdventures && npm install .
if [[ -d node_modules ]]; then
printf "TextAdventures $text_installed"
else
printf "TextAdventures $text_not_installed"
exit 1
fi
printf "Dependences installed succesfully\n"
exit 0