1
0
Fork 0
mirror of synced 2024-06-27 03:01:10 -04:00

Aggressively fixed commit without gitconfig issue

This commit is contained in:
The Aviator 2015-05-31 16:08:01 -04:00
parent e66e2dff8e
commit ed1b4f4bab

View file

@ -15,6 +15,7 @@ setupshell='echo "Setting up DotBot. Please do not ^C." >&2'
dotclean='' dotclean=''
dotlink='' dotlink=''
dotshell='' dotshell=''
installerrun=1;
echoerr "Welcome to the configuration generator for DotBot" echoerr "Welcome to the configuration generator for DotBot"
echoerr "Please be aware that if you have a complicated setup, you may need more customization than this script offers." echoerr "Please be aware that if you have a complicated setup, you may need more customization than this script offers."
@ -56,6 +57,7 @@ until (( $moveon )); do
elif echo "$answer" | grep -iq "^n"; then elif echo "$answer" | grep -iq "^n"; then
echoerr "Okay, I shall not. You will need to manually set up your install script." echoerr "Okay, I shall not. You will need to manually set up your install script."
moveon=1 moveon=1
installerrun=0;
else else
echoerr "Answer not understood: ${answer}" echoerr "Answer not understood: ${answer}"
fi fi
@ -138,7 +140,24 @@ setupshell=$setupshell'; echo -e "'$installconfyaml'" > install.conf.yaml'
moveon=0; moveon=0;
installerrun=1;
until (( $moveon )); do until (( $moveon )); do
read -p "Shall I run the installer? (Necessary to git commit) (Y/n) " answer
if echo "$answer" | grep -iq "^y" || echo "$answer" | grep -q "^$" ; then
echoerr "Will do."
setupshell=$setupshell'; ./install'
moveon=1
elif echo "$answer" | grep -iq "^n"; then
echoerr "Okay, I shall not. You will need to take care of that yourself."
moveon=1
installerrun=0;
else
echoerr "Answer not understood: ${answer}"
fi
done
moveon=0;
until (( $moveon )) || ! (( $installerrun )); do
read -p "Shall I make the initial commit? (Y/n) " answer read -p "Shall I make the initial commit? (Y/n) " answer
if echo "$answer" | grep -iq "^y" || echo "$answer" | grep -q "^$" ; then if echo "$answer" | grep -iq "^y" || echo "$answer" | grep -q "^$" ; then
echoerr "Will do." echoerr "Will do."