Aggressively fixed commit without gitconfig issue
This commit is contained in:
parent
e66e2dff8e
commit
ed1b4f4bab
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue