We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3644952 commit 30abcedCopy full SHA for 30abced
scripts/install_vim.sh
@@ -7,12 +7,13 @@ bail() {
7
exit 1
8
}
9
10
-
11
-TAG=""
12
-NAME=""
13
-PYTHON=0
14
-RUBY=0
15
-LUA=0
+init_vars() {
+ TAG=
+ NAME=
+ PYTHON=0
+ RUBY=0
+ LUA=0
16
+}
17
18
build() {
19
[ -z $NAME ] && NAME="vim-${TAG}"
@@ -74,6 +75,7 @@ build() {
74
75
76
apk update
77
78
+init_vars
79
while [ $# -gt 0 ]; do
80
case $1 in
81
-name)
@@ -106,11 +108,7 @@ while [ $# -gt 0 ]; do
106
108
# installing all Vim versions becomes one layer.
107
109
# Side note: tried docker-squash and it didn't seem to do anything.
110
build
- NAME=""
- TAG=""
111
- PYTHON=0
112
- RUBY=0
113
- LUA=0
+ init_vars
114
;;
115
esac
116
0 commit comments