Removed time zone list feature
This commit is contained in:
@@ -9,14 +9,9 @@ echoerr() { cat <<< "$@" 1>&2; }
|
|||||||
|
|
||||||
# Set the time zone
|
# Set the time zone
|
||||||
while
|
while
|
||||||
echo "[INFO] Time zone configuration. Type \"list\" to list time zones"
|
echo "[INFO] Time zone configuration."
|
||||||
read -p "Enter time zone (${timezone}): " input
|
read -p "Enter time zone (${timezone}): " input
|
||||||
|
|
||||||
if [[ "$input" == "list" ]]; then
|
|
||||||
awk '/^Z/ { print $2 }; /^L/ { print $3 }' /usr/share/zoneinfo/tzdata.zi | sort | less
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then
|
if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then
|
||||||
echoerr "[ERROR] The selected time zone does not exist"
|
echoerr "[ERROR] The selected time zone does not exist"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -107,8 +107,7 @@ echo "[INFO] Installing essential packages"
|
|||||||
pacstrap -K /mnt base linux linux-firmware \
|
pacstrap -K /mnt base linux linux-firmware \
|
||||||
intel-ucode amd-ucode \
|
intel-ucode amd-ucode \
|
||||||
networkmanager \
|
networkmanager \
|
||||||
grub efibootmgr \
|
grub efibootmgr
|
||||||
less
|
|
||||||
|
|
||||||
# Generate the fstab file
|
# Generate the fstab file
|
||||||
echo "[INFO] Generating fstab file"
|
echo "[INFO] Generating fstab file"
|
||||||
|
|||||||
Reference in New Issue
Block a user