-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·51 lines (43 loc) · 1.07 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
source ./utilities/installation/installer.sh
source ./utilities/installation/greeter.sh
source ./utilities/installation/done.sh
source ./utilities/installation/util.sh
PREVIOUS=~/.config/previous-mu-vim/
INSTALATION_DIR=~/.config/nvim
FAIL=0
# Custom dirs functionality
echo "Are you using a custom configuration directory? (Default is ~/.config)[y/n]: "
read CUSTOM_DIR
if [ $CUSTOM_DIR == "y" ]; then
echo "Write your custom directory path: "
read INSTALATION_DIR
fi
{
greeter
sleep 5s
} || {
echo "Something when wrong while greeting" >>fails.log
let FAIL++
}
{
replace_old $INSTALATION_DIR $PREVIOUS
} || {
echo "Something when wrong replacing old nvim config" >>fails.log
let FAIL++
}
{
MANAGER=$(get_package_manager)
echo $MANAGER
installDependencies $MANAGER
} && {
installation_success
} || {
echo "Something while ending" >>fails.log
let FAIL++
}
if [[ $FAIL -gt 0 ]]; then
echo "It seems to be some failures, pleace submit an issue in the following repository"
echo
echo "\thttps://github.com/AndresMpa/mu-vim/issues/new"
fi