Fixing init.sh

This commit is contained in:
Gordon Grant-Stuart 2023-06-13 10:00:25 +01:00
parent 9bd457dc40
commit f09cf19afb

View File

@ -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: '