Delete comments

This commit is contained in:
Santiago Lo Coco 2022-01-19 19:07:14 -03:00
parent 24cbefbcc7
commit a265f78104
2 changed files with 3 additions and 11 deletions

View File

@ -105,13 +105,10 @@ checkForDependencies() {
}
startRice() {
selectedOption=$(displayDialogBox --menu "File already exists: $(basename "$1"), what would you like to do?" VALUES 0 1 "Skip" 2 "Skip all" 3 "Overwrite" 4 "Overwrite all" 5 "Backup" 6 "Backup all" 3>&1 1>&2 2>&3)
gitWorkName=$(displayDialogBox --inputbox "Enter a name." VALUES 3>&1 1>&2 2>&3)
displayDialogBox --title "sadedot" --msgbox "Hi! This script will auto install my dotfiles."
displayDialogBox --yesno "Would you like to set up gitconfig?" || return
# getGitconfigData
# source scripts/linkFiles.sh
# [[ -n $installPackages && $installPackages = true ]] && source scripts/install.sh
getGitconfigData
source scripts/linkFiles.sh
[[ -n $installPackages && $installPackages = true ]] && source scripts/install.sh
displayDialogBox --title "sadedot" --msgbox "All done! Enjoy..."
}

View File

@ -140,11 +140,6 @@ usePlainTextMenu() {
printLine
printf '\n%s' "[1..$((i-1))] "
read -n ${#i} -r readVar
# if [[ $readVar -le 0 || $readVar -ge $i ]]; then
# echo "hola"
# fi
# echo "h" $(echo "$readVar" | grep -vqE '[0-9]+')
# echo "i" $([[ $readVar -le 0 || $readVar -ge $i ]])
while echo "$readVar" | grep -vqE '[0-9]+' || [[ $readVar -le 0 || $readVar -ge $i ]]; do
printf "\033[A"
printf '\n%s' "You need to choose a number between 1 and $((i-1))"