Skip to content

Commit 89d02e6

Browse files
committed
chore: update
1 parent 4bcd9c8 commit 89d02e6

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

docs/install.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ select_mode() {
8181
echo ""
8282
echo -ne "Enter choice [1]: "
8383
read -r choice
84-
choice="${choice:-1}"
84+
mode="${choice:-1}"
8585

86-
case "$choice" in
87-
1) echo "copy" ;;
88-
2) echo "link" ;;
89-
*) echo "copy" ;;
86+
case "$mode" in
87+
1) install_copy ;;
88+
2) install_link ;;
89+
*) install_copy ;;
9090
esac
9191
}
9292

@@ -126,13 +126,7 @@ main() {
126126
check_not_installed
127127
check_git_clean
128128

129-
mode=$(select_mode)
130-
131-
echo ""
132-
case "$mode" in
133-
copy) install_copy ;;
134-
link) install_link ;;
135-
esac
129+
select_mode
136130

137131
create_directories
138132

0 commit comments

Comments
 (0)