1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

Add a download guard

This commit is contained in:
Marek Kubica 2017-01-20 18:09:25 +01:00
parent eadaf62aa6
commit 66cf47f25a

View File

@ -1,6 +1,9 @@
#!/usr/bin/env bash
#
# A guarding function to avoid executing an incompletely downloaded script
guard () {
# Reset
Color_off='\033[0m' # Text Reset
@ -142,3 +145,9 @@ need_cmd 'git'
fetch_repo
install_vim
install_neovim
# end of guard
}
# download finished fine
guard