From 66cf47f25a4637a63963f1861db83b9791b757a2 Mon Sep 17 00:00:00 2001 From: Marek Kubica Date: Fri, 20 Jan 2017 18:09:25 +0100 Subject: [PATCH] Add a download guard --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.sh b/install.sh index 316022fa4..345ce6306 100755 --- a/install.sh +++ b/install.sh @@ -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