Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #95 from grm34:dev
Browse files Browse the repository at this point in the history
Update app regex
  • Loading branch information
grm34 authored Apr 2, 2020
2 parents 926cb49 + 7823556 commit 10bc7c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/arch/mirrorlist
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $(curl -s ipinfo.io/ | grep "country" | \
sed 's/ "country": "//' | sed 's/",//')

# Update mirrorlist if country code properly detected
if [[ ${COUNTRY} =~ ^[A-Z]{2}+$ ]]; then
if [[ ${COUNTRY} =~ ^[A-Z]{2}$ ]]; then
_note "${COUNTRY} mirrors priority detected!"
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup

Expand Down
2 changes: 1 addition & 1 deletion src/arch/partition
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ _default_partitioning_scheme() {

# Check if valid size and otherwise ask again
until [[ ${PARTITION_SIZE} \
=~ ^[1-9]{1}[[0-9]{0,2}(M|G|T|P){1}+$ ]]; do
=~ ^[1-9]{1}[[0-9]{0,2}(M|G|T|P){1}$ ]]; do
_note "partition size {M,G,T,P} (e.g., ${SIZES[${INDEX}]})"
_prompt "Enter valid ${PART_NAME} partition size:"
read -r PARTITION_SIZE
Expand Down
6 changes: 3 additions & 3 deletions src/arch/user
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ _get_user_variables() {

# Custom kernel
y|Y|yes|Yes|YES)
until [[ ${KERNEL} =~ ^([1-9]|4)$ ]]; do
until [[ ${KERNEL} =~ ^[1-4]$ ]]; do
_select "DEFAULT" "HARDENED" "LTS" "ZEN"
read -r KERNEL
done
Expand All @@ -122,7 +122,7 @@ _get_user_variables() {
_confirm "Do you wish to install a Desktop Environment?"
case ${CONFIRM} in
y|Y|yes|Yes|YES)
until [[ ${DESKTOP} =~ ^([1-9]|10)$ ]]; do
until [[ ${DESKTOP} =~ ^[1-9][0]?$ ]]; do
_select \
"GNOME" "KDE" "MATE" "XFCE" "LXDE" "LXQT" \
"DEEPIN" "BUDGIE" "CINNAMON" "ENLIGHTENMENT"
Expand All @@ -144,7 +144,7 @@ _get_user_variables() {

# Custom display manager
n|N|no|No|NO)
until [[ ${DISPLAY_MAN} =~ ^([1-5])$ ]]; do
until [[ ${DISPLAY_MAN} =~ ^[1-5]$ ]]; do
_select "GDM" "LIGHTDM" "SDDM" "LXDM" "XDM"
read -r DISPLAY_MAN
done
Expand Down

0 comments on commit 10bc7c8

Please sign in to comment.