diff options
author | Guangxiong Lin <[email protected]> | 2021-12-15 22:26:09 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-12-15 22:26:09 +0800 |
commit | 29d8e9d4da1b817aba0255f4227a8b85fb16e7d8 (patch) | |
tree | 4c565fe1add8a7bc00e92a827a9467241bb6451c | |
parent | b3d381bfc57feb75f44b62c2c1ed8a313caa9be4 (diff) | |
download | dotfiles-29d8e9d4da1b817aba0255f4227a8b85fb16e7d8.tar.gz dotfiles-29d8e9d4da1b817aba0255f4227a8b85fb16e7d8.tar.bz2 dotfiles-29d8e9d4da1b817aba0255f4227a8b85fb16e7d8.zip |
Update vim package script
-rwxr-xr-x | bin/vim-pack | 6 |
1 files changed, 6 insertions, 0 deletions
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 () { |