From 29d8e9d4da1b817aba0255f4227a8b85fb16e7d8 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 15 Dec 2021 22:26:09 +0800 Subject: Update vim package script --- bin/vim-pack | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/vim-pack b/bin/vim-pack index 922b45f..de66a01 100755 --- a/bin/vim-pack +++ b/bin/vim-pack @@ -47,6 +47,10 @@ update_package () { } clean () { + if [ ! -f $package_dirs_file ]; then + return + fi + while IFS= read -r line; do package_dirs+=("$line") done < $package_dirs_file @@ -63,6 +67,8 @@ clean () { fi done done + + rm $package_dirs_file } install_ycm () { -- cgit v1.2.3