diff --git a/init.sh b/init.sh index 0f5d732..0e0c4f7 100755 --- a/init.sh +++ b/init.sh @@ -17,7 +17,6 @@ if [[ $(grep -c "msk=1;38;5;95" ~/.bash_aliases) -eq 0 ]]; then fi mv "$SCRIPT_DIR/.Books" "$HOME/.Books" -rm -rf $SCRIPT_DIR/.git # Get rid of the Books git project, create a new one for YOUR writing ########## Install screen, git & pandoc ############# @@ -89,12 +88,10 @@ fi ##################### Add the password to the git config cd $SCRIPT_DIR -if [[ ! -d "$SCRIPT_DIR/.git" ]]; then - git init -fi +rou=$(git config --get remote.origin.url | sed 's|https://||g; s/Books/myBooks/g') +rm -rf $SCRIPT_DIR/.git # Get rid of the Books git project, create a new one for YOUR writing +git init - -rou=$(git config --get remote.origin.url | sed 's$https://$$g') if [[ $(echo $rou | egrep -c [^:]*:[^@]*@ ) -eq 0 ]]; then echo -e '\n*******************************************************\n' echo -n 'Enter the git username: '