From c205d7095841f45a740a581d041c162b37e09b3a Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 8 Feb 2022 01:14:07 -0300 Subject: [PATCH] Remove dialog.sh --- dialog.sh | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 dialog.sh diff --git a/dialog.sh b/dialog.sh deleted file mode 100644 index 1c394b8..0000000 --- a/dialog.sh +++ /dev/null @@ -1,32 +0,0 @@ - source scripts/common.sh -# setDialogBox "whiptail" -# term=ANSI -# setDialogBox "plain" -setDialogBox "dialog" -displayDialogBox --infobox "\nUpdating sadedot submodule." VALUES - - displayDialogBox --yesno "\nWould you like to set up gitconfig?" VALUES || return - displayDialogBox --yesno "\nWould you like to set up gitconfig?" || return - displayDialogBox --msgbox "\nNow, I will ask you for data to set up gitconfig personal account." VALUES - gitPersonalName=$(displayDialogBox --inputbox "\nEnter a name." VALUES 3>&1 1>&2 2>&3) - gitPersonalMail=$(displayDialogBox --inputbox "\nEnter an e-mail." VALUES 3>&1 1>&2 2>&3) - displayDialogBox --yesno "$msg" && break - gitPersonalName=$(displayDialogBox --inputbox "\nEnter a name." VALUES 3>&1 1>&2 2>&3) - gitPersonalMail=$(displayDialogBox --inputbox "\nEnter an e-mail." VALUES 3>&1 1>&2 2>&3) - displayDialogBox --yesno "\nWould you like to set up a work account?" - gitWorkPath=$(displayDialogBox --inputbox "$msg" VALUES 3>&1 1>&2 2>&3) - gitWorkPath=$(displayDialogBox --inputbox "$msg" VALUES 3>&1 1>&2 2>&3) - gitWorkName=$(displayDialogBox --inputbox "\nEnter a name." VALUES 3>&1 1>&2 2>&3) - gitWorkMail=$(displayDialogBox --inputbox "\nEnter an e-mail." VALUES 3>&1 1>&2 2>&3) - displayDialogBox --yesno "$msg" && break - gitWorkName=$(displayDialogBox --inputbox "\nEnter a name." VALUES 3>&1 1>&2 2>&3) - gitWorkMail=$(displayDialogBox --inputbox "\nEnter an e-mail." VALUES 3>&1 1>&2 2>&3) - displayDialogBox --title "sadedot" --yesno "$msg" || return - displayDialogBox --infobox "\nUpdating sadedot submodule." - displayDialogBox --title "sadedot" --msgbox "\nAll done! Enjoy..." -displayDialogBox() { - displayDialogBox --msgbox "$1" VALUES -displayDialogBox --infobox "\nUpdating sadedot submodule." VALUES - selectedOption=$(displayDialogBox --menu "$msg" VALUES 0 "${options[@]}" 3>&1 1>&2 2>&3) - displayDialogBox --yesno "$msg" || return - password=$(displayDialogBox --passwordbox "\nEnter your password." VALUES 3>&1 1>&2 2>&3)