From 9e282a69cfab1838a7344668b3db52fa63a261b1 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 2 Jun 2014 05:19:41 -0400 Subject: [PATCH] Fixed update script to delete removed plugins with names contained by current plugins --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index 83173ed..9ddc09a 100755 --- a/update +++ b/update @@ -28,7 +28,7 @@ echo -e "\nConfiguring plugin submodules..." if [ -d "$each" ]; then if [ -f "${each}/.git" ]; then FILE=$(echo $each | grep -o -e "[^\/]*$") - [[ `cat .gitmodules | grep "path = " | grep -o -e "[^\/]*$" | grep -c "${FILE}"` = 0 ]] && (rm -rf "${each}" && echo "Deleted: ${each}" || (echo -e "\033[01;31mWARNING\033[00m: '${each}' was removed upstream but couldn't be deleted here.\n\nPlease delete ${each} manually."; exit 1)) + [[ `cat .gitmodules | grep "path = " | grep -o -e "[^\/]*$" | grep -c -e "${FILE}$"` = 0 ]] && (rm -rf "${each}" && echo "Deleted: ${each}" || (echo -e "\033[01;31mWARNING\033[00m: '${each}' was removed upstream but couldn't be deleted here.\n\nPlease delete ${each} manually."; exit 1)) fi fi done