diff --git a/bin/initDesktop b/bin/initDesktop index 979cd38..a1c7607 100755 --- a/bin/initDesktop +++ b/bin/initDesktop @@ -7,6 +7,7 @@ DOTFILES_REPO="$HOME/.dotfiles" DOTFILES_REMOTE="https://git.rre.nu:443/jonas/dotfiles.git" +DOTFILES_REMOTE_SSH="ssh://git@curry.rre.nu:3022/jonas/dotfiles.git" DOTFILES_RENAME_EXISTING_FILES=( .bashrc @@ -100,6 +101,13 @@ function setup_dotfiles(){ log "fetching dotfiles" $dotf fetch origin $dotf checkout master + + printf "Do you want to switch to SSH remote on dotfiles [N/y]? " + read -r -n 1 -s answer + if [[ $answer == [Yy] ]];then + $dotf remote set-url origin "$DOTFILES_REMOTE_SSH" + fi + } function do_salt_call(){