mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +08:00
Merge pull request #151 from Leonidas-from-XIV/sh-install-guard
Add a download guard
This commit is contained in:
commit
8dd2fddcde
@ -1,6 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# A guarding function to avoid executing an incompletely downloaded script
|
||||||
|
guard () {
|
||||||
|
|
||||||
# Reset
|
# Reset
|
||||||
Color_off='\033[0m' # Text Reset
|
Color_off='\033[0m' # Text Reset
|
||||||
|
|
||||||
@ -142,3 +145,9 @@ need_cmd 'git'
|
|||||||
fetch_repo
|
fetch_repo
|
||||||
install_vim
|
install_vim
|
||||||
install_neovim
|
install_neovim
|
||||||
|
|
||||||
|
# end of guard
|
||||||
|
}
|
||||||
|
|
||||||
|
# download finished fine
|
||||||
|
guard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user