From 0905d8776121b70ed4641d88cc3774574722347f Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 25 Dec 2021 23:57:30 -0300 Subject: [PATCH] Refactor --- cocoPrograms.csv | 1 + install.sh | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cocoPrograms.csv b/cocoPrograms.csv index 28fa8fc..39c6d18 100644 --- a/cocoPrograms.csv +++ b/cocoPrograms.csv @@ -139,3 +139,4 @@ zaread-git,N zathura,N zathura-pdf-mupdf,N zsh,Y +gnome-keyring, N diff --git a/install.sh b/install.sh index fdcc69a..7ad6292 100755 --- a/install.sh +++ b/install.sh @@ -78,9 +78,9 @@ partDisks() { autoPart() { parted -s $disk mklabel gpt 2> /dev/null - sgdisk $disk -n=1:0:+300M -t=1:ef00 > /dev/null - sgdisk $disk -n=2:0:+1024M -t=2:8200 > /dev/null - sgdisk $disk -n=3:0:0 > /dev/null + sgdisk $disk -n=1:0:+300M -t=1:ef00 > /dev/null + sgdisk $disk -n=2:0:+1024M -t=2:8200 > /dev/null + sgdisk $disk -n=3:0:0 > /dev/null } formatPart() { @@ -122,10 +122,10 @@ setTimeZone() { whiptail --msgbox "Now we will set the timezone." 0 0 setDelimiters "" formatOptions $(ls -l /usr/share/zoneinfo/ | grep '^d' | awk '{printf $9" \n"}' | awk '!/posix/ && !/right/') - region=$(whiptail --title "Region" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) + region=$(whiptail --title "Region" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) exitIfCancel "You must select a region." "setTimeZone" formatOptions $(ls -l /usr/share/zoneinfo/${region} | grep -v '^d' | awk '{printf $9" \n"}') - city=$(whiptail --title "City" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) + city=$(whiptail --title "City" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) exitIfCancel "You must select a city." "setTimeZone" ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime