mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-22 16:00:24 -05:00
Fixed update script to delete removed plugins with names contained by
current plugins
This commit is contained in:
parent
b00971a465
commit
9e282a69cf
1 changed files with 1 additions and 1 deletions
2
update
2
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
|
||||
|
|
Loading…
Reference in a new issue