Parcourir la source

fix(git): Fix username

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO il y a 2 ans
Parent
commit
d8999f6d0b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      cookbooks/workstation/recipes/_git.rb

+ 2 - 0
cookbooks/workstation/recipes/_git.rb

@@ -10,6 +10,8 @@ include_recipe 'workstation::_user'
 
 include_recipe 'workstation::_ssh-ident'
 
+username = node['my_workstation']['default_user'].first[0]
+
 node['workstation']['_git'].each do |scope_git, git_options|
   if scope_git.match(/^file_/)
     gitconfig_file = $' # String after the match (ref: https://ruby-doc.org/core-2.5.1/Regexp.html#class-Regexp-label-Special+global+variables)