mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 06:44:09 -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 [ -d "$each" ]; then
|
||||||
if [ -f "${each}/.git" ]; then
|
if [ -f "${each}/.git" ]; then
|
||||||
FILE=$(echo $each | grep -o -e "[^\/]*$")
|
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
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue