We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bcd9c8 commit 89d02e6Copy full SHA for 89d02e6
1 file changed
docs/install.sh
@@ -81,12 +81,12 @@ select_mode() {
81
echo ""
82
echo -ne "Enter choice [1]: "
83
read -r choice
84
- choice="${choice:-1}"
+ mode="${choice:-1}"
85
86
- case "$choice" in
87
- 1) echo "copy" ;;
88
- 2) echo "link" ;;
89
- *) echo "copy" ;;
+ case "$mode" in
+ 1) install_copy ;;
+ 2) install_link ;;
+ *) install_copy ;;
90
esac
91
}
92
@@ -126,13 +126,7 @@ main() {
126
check_not_installed
127
check_git_clean
128
129
- mode=$(select_mode)
130
-
131
- echo ""
132
- case "$mode" in
133
- copy) install_copy ;;
134
- link) install_link ;;
135
- esac
+ select_mode
136
137
create_directories
138
0 commit comments