forked from Karmenzind/dotfiles-and-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·53 lines (47 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
52
53
#! /usr/bin/env bash
cd `dirname $0`
repo_dir=$PWD
source ./scripts/utils/commonrc
arch_choice () {
case $ans in
1) ./scripts/install_arch/livecd_part.sh
;;
2) ./scripts/install_arch/chrooted_part.sh
;;
3) ./scripts/install_arch/general_rec_part.sh
;;
4) ./scripts/install_arch/graphical_env_part.sh
;;
*) echo "No action." ;;
esac
}
echo "What do you want to do?"
cat << EOF
1 install ArchLinux
2 install recommended apps
3 install Vim
4 install Vim Plugin: YouCompleteMe
EOF
display_array ${choices[*]}
check_input 1234
case $ans in
1) echo "What part are you in?"
cat << EOF
1 livecd part
2 chrooted part
3 general recommendations part
4 graphical environment part
EOF
display_array ${install_arch_choices[*]}
check_input 1234
arch_choice
;;
2) ./scripts/install_apps.sh
;;
3) ./scripts/install_vim/main.sh
;;
4) ./scripts/install_vim/ycm.sh
;;
*) echo "No action." ;;
esac
echo 'DONE:)'