-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
34 lines (25 loc) · 925 Bytes
/
install.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
#!/usr/bin/env bash
[ -x "$(command -v bsdtar)" ] && TAR="bsdtar" || TAR="tar"
echo '
--------------------------
| |
| |
| Nier Automata Ru Linux |
| |
| |
--------------------------
'
VER="1.1"
LINK="https://github.com/AnilAntari/NierAutomataRuLinux/releases/download/$VER/generic.tar.gz"
GAMEPATH="$HOME/.local/share/Steam/steamapps/common/NieRAutomata"
[ -d "$GAMEPATH" ] && {
echo "Игра была найдена в ${GAMEPATH}"
} || {
read -rp "Игра не была найдена в $GAMEPATH, укажите путь к игре: " GAMEPATH
[ -d "$GAMEPATH" ] || { echo "Игра не была найдена в $GAMEPATH, выход " ; exit 1 ; }
}
echo "Загрузка"
wget "$LINK"
$TAR -xzvf generic.tar.gz && cp -r generic/data/* "$GAMEPATH/data"
rm -r generic && rm generic.tar.gz
echo "Готово"