Fix bug in getGitConfigData()

This commit is contained in:
Santiago Lo Coco 2022-02-08 02:22:56 -03:00
parent 3f123e8b4d
commit 23b8815642
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ getGitconfigData() {
displayDialogBox --yesno "\nWould you like to set up a work account?"
if [ $? -eq 1 ]; then
sed -e "s/PERSONAL_NAME/$gitPersonalName/g" -e "s/PERSONAL_MAIL/$gitPersonalMail/g" ./templates/.gitconfig-notwork > ./dotfiles/.gitconfig
sed -e "s/PERSONAL_NAME/$gitPersonalName/g" -e "s/PERSONAL_MAIL/$gitPersonalMail/g" ./templates/.gitconfig-notwork > ../dotfiles/.gitconfig
return
fi
@ -94,8 +94,8 @@ getGitconfigData() {
checkCancel "You must enter an e-mail." && return
done
sed -e "s/PERSONAL_NAME/$gitPersonalName/g" -e "s/PERSONAL_MAIL/$gitPersonalMail/g" -e "s|WORK_PATH|${gitWorkPath}|g" ./templates/.gitconfig > ./dotfiles/.gitconfig
sed -e "s/WORK_NAME/$gitWorkName/g" -e "s/WORK_MAIL/$gitWorkMail/g" ./templates/.gitconfig-work > ./dotfiles/.gitconfig-work
sed -e "s/PERSONAL_NAME/$gitPersonalName/g" -e "s/PERSONAL_MAIL/$gitPersonalMail/g" -e "s|WORK_PATH|${gitWorkPath}|g" ./templates/.gitconfig > ../dotfiles/.gitconfig
sed -e "s/WORK_NAME/$gitWorkName/g" -e "s/WORK_MAIL/$gitWorkMail/g" ./templates/.gitconfig-work > ../dotfiles/.gitconfig-work
}
checkForDependencies() {