aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-18 11:42:13 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-18 11:42:13 +0100
commitf08f1f84f0735b35f465bf8729b78d4c3884b20e (patch)
tree0b9b115bec8b2da6e9f50c8b820e8312c3fa256b
parentTo blue (diff)
downloadarch-installer-f08f1f84f0735b35f465bf8729b78d4c3884b20e.tar.gz
arch-installer-f08f1f84f0735b35f465bf8729b78d4c3884b20e.tar.bz2
arch-installer-f08f1f84f0735b35f465bf8729b78d4c3884b20e.tar.xz
arch-installer-f08f1f84f0735b35f465bf8729b78d4c3884b20e.tar.zst
arch-installer-f08f1f84f0735b35f465bf8729b78d4c3884b20e.zip
Color test for awk
-rwxr-xr-xjoes-arch-install-UEFI.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh
index 42b8521..3f02f1c 100755
--- a/joes-arch-install-UEFI.sh
+++ b/joes-arch-install-UEFI.sh
@@ -50,11 +50,11 @@ clear
echo -e "${BMAGENTA}\
#============ WELCOME ============#
# #
-# ${BBLUE}Welcome to Joe's ${BMAGENTA}#
-# ${BBLUE}ARCH LINUX ${BMAGENTA}#
-# ${BBLUE}UEFI INSTALL SCRIPT ${BMAGENTA}#
+# Welcome to Joe's #
+# ARCH LINUX #
+# UEFI INSTALL SCRIPT #
# #
-# ${BBLUE}(press [return] to begin...) ${BMAGENTA}#
+# (press [return] to begin...) #
# #
#=================================#${END}"
read -r
@@ -84,7 +84,7 @@ X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X=X${END}"
exit
fi
clear
-echo -e "${BBLUE}Verifying that your are connected to the Internet, please wait...${END}"
+echo -e "${BMAGENTA}Verifying that your are connected to the Internet, please wait...${END}"
wget -q --spider https://archlinux.org > /dev/null
tmpret=$?
@@ -124,21 +124,21 @@ while [[ $answr != y && $answr != Y && $answr != yes && $answr != Yes && $answr
swps=""
rts=""
clear
- echo "\
+ echo "${BMAGENTA}\
#========= I. DISK SETUP =========#
# #
# Please choose wisely #
# #
# 1. Drive to be used #
# #
-#=================================#"
+#=================================#${END}"
while [[ $drvnm == "" || $drvnm -gt $(lsblk | grep -c disk) || $drvnm -le 0 ]]; do
echo && echo
dn=$(lsblk | grep -c disk)
id=1
- lsblk | grep disk | awk '{print "DISK", "", "", "SIZE"}{print "----", "", "", "----"}{print $1 " ->", $4}'
+ lsblk | grep disk | awk '{print "${BBLUE}DISK", "", "", "SIZE${END}"}{print "----", "", "", "----"}{print "${BCYAN}$1" " ->", "${BYELLOW}$4"}'
echo && echo
- echo "Please choose the drive on which Arch Linux shoud be installed:"
+ echo "${BMAGENTA}Please choose the drive on which Arch Linux shoud be installed:${END}"
while [[ $dn != 0 ]]; do
echo "$id. $(lsblk | grep disk | awk '{print $1}' | sed -n "$id"p)"
((dn--))