Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions scripts/install_vim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ bail() {
exit 1
}


TAG=""
NAME=""
PYTHON=0
RUBY=0
LUA=0
init_vars() {
TAG=
NAME=
PYTHON=0
RUBY=0
LUA=0
}

build() {
[ -z $NAME ] && NAME="vim-${TAG}"
Expand Down Expand Up @@ -73,6 +74,7 @@ build() {

apk update

init_vars
while [ $# -gt 0 ]; do
case $1 in
-name)
Expand Down Expand Up @@ -105,11 +107,7 @@ while [ $# -gt 0 ]; do
# installing all Vim versions becomes one layer.
# Side note: tried docker-squash and it didn't seem to do anything.
build
NAME=""
TAG=""
PYTHON=0
RUBY=0
LUA=0
init_vars
;;
esac

Expand Down