From a0f4c93c2a7d3c302046893dac8d48ad1c4aa92f Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Wed, 20 Aug 2025 18:03:40 +0200 Subject: [PATCH] No overwrite dotfiles --- mymachine.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mymachine.sh b/mymachine.sh index d6b0bea..cda508d 100755 --- a/mymachine.sh +++ b/mymachine.sh @@ -174,9 +174,9 @@ if [[ $i = $total ]]; then echo "" fi -# Install dotfiles +# Install dotfiles, without overwriting echo "Installing dotfiles..." -cp -r ${script_dir}/dotfiles/. /home/${USERNAME}/ +cp -r -n ${script_dir}/dotfiles/. /home/${USERNAME}/ cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config # TODO: Setup GRUB theme