Remove comments
This commit is contained in:
parent
644e351c4a
commit
b59aa806f2
27
dialog.sh
27
dialog.sh
|
@ -1,27 +0,0 @@
|
||||||
source scripts/common.sh
|
|
||||||
setDialogBox "dialog"
|
|
||||||
|
|
||||||
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."
|
|
||||||
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. Please wait." VALUES
|
|
||||||
displayDialogBox --title "sadedot" --msgbox "\nAll done! Enjoy..."
|
|
||||||
displayDialogBox --msgbox "\n$1" VALUES
|
|
||||||
selectedOption=$(displayDialogBox --menu "$msg" VALUES 0 "${options[@]}" 3>&1 1>&2 2>&3)
|
|
||||||
displayDialogBox --title "sadedot" --msgbox "\nAll done! Enjoy..."
|
|
||||||
displayDialogBox --yes-label " Install all " --extra-button --extra-label " Select each " --no-label " Cancel " --yesno "$msg" || return
|
|
||||||
# displayDialogBox --yesno "$msg" || return
|
|
||||||
password=$(displayDialogBox --passwordbox "\nEnter your password." VALUES 3>&1 1>&2 2>&3)
|
|
|
@ -212,8 +212,6 @@ calcWidthDialog() {
|
||||||
|
|
||||||
calcHeight() {
|
calcHeight() {
|
||||||
newlines=$(echo -ne "$1" | grep -c $'\n')
|
newlines=$(echo -ne "$1" | grep -c $'\n')
|
||||||
# width="$3"
|
|
||||||
# [ $((width)) -lt 60 ] && width=$(($3-4))
|
|
||||||
width="$(($3-4))"
|
width="$(($3-4))"
|
||||||
height=$(echo "$((${#1}-1))" "$((newlines-1))" "$width" | awk '{
|
height=$(echo "$((${#1}-1))" "$((newlines-1))" "$width" | awk '{
|
||||||
z = ($1 - $2) / $3
|
z = ($1 - $2) / $3
|
||||||
|
|
Loading…
Reference in New Issue