mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
vim-utils: better error message if duplicates
Print a more user friendly error message if you try to in install multiple plugins with the same name closes #145980 #146099
This commit is contained in:
parent
f895817548
commit
19b22191f7
1 changed files with 4 additions and 0 deletions
|
@ -199,6 +199,10 @@ let
|
|||
|
||||
linkVimlPlugin = plugin: packageName: dir: ''
|
||||
mkdir -p $out/pack/${packageName}/${dir}
|
||||
if test -e "$out/pack/${packageName}/${dir}/${lib.getName plugin}"; then
|
||||
printf "\nERROR - Duplicated vim plugin: ${lib.getName plugin}\n\n"
|
||||
exit 1
|
||||
fi
|
||||
ln -sf ${plugin}/${rtpPath} $out/pack/${packageName}/${dir}/${lib.getName plugin}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue