From 60270b519a47cf9d25b8d6204e3642b81b3a37cb Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 7 Nov 2020 22:35:32 -0600 Subject: [PATCH] Clone the dotfiles for the user --- bin/init-dotfiles | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/init-dotfiles b/bin/init-dotfiles index ae84469..2161dcb 100755 --- a/bin/init-dotfiles +++ b/bin/init-dotfiles @@ -93,9 +93,10 @@ distro_specific_user_setup() { init_for_root() { clone_dotfiles "$root_home$dotfiles" distro_specific_root_setup - chown daniel:users "$daniel_home" + clone_dotfiles "$daniel_home$dotfiles" + chown daniel:users -R "$daniel_home" echo "Re-running as user daniel..." - sudo --user daniel "$root_home$dotfiles/bin/init-dotfiles" + sudo --user daniel "$daniel_home$dotfiles/bin/init-dotfiles" } init_for_daniel() {