From 667d0a6cac1de9c17c60cb87fb13f71dde6f740e Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Wed, 5 Aug 2020 07:52:21 +0200 Subject: [PATCH] Added possibility to change to ssh on dotfiles repo --- bin/initDesktop | 8 ++++++++ 1 file changed, 8 insertions(+) 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(){