diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-17 14:15:33 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-17 14:15:33 +0100 |
commit | f21255342faf3004421b9356e4a7d6ae292b37ed (patch) | |
tree | 14acd3bed34d6e64570929be4e1ab330b6633662 | |
parent | Better echo architechture for more optimization (diff) | |
download | arch-installer-f21255342faf3004421b9356e4a7d6ae292b37ed.tar.gz arch-installer-f21255342faf3004421b9356e4a7d6ae292b37ed.tar.bz2 arch-installer-f21255342faf3004421b9356e4a7d6ae292b37ed.tar.xz arch-installer-f21255342faf3004421b9356e4a7d6ae292b37ed.tar.zst arch-installer-f21255342faf3004421b9356e4a7d6ae292b37ed.zip |
Solved root password bug
Diffstat (limited to '')
-rwxr-xr-x | joes-arch-install-UEFI.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh index eabeea7..d2f8e6b 100755 --- a/joes-arch-install-UEFI.sh +++ b/joes-arch-install-UEFI.sh @@ -208,7 +208,7 @@ done answr="n" -while [ ! $rtrtpwd = "$rtpwd" ] || [ $rtpwd = "" ]; do +while [[ $rtrtpwd != "$rtpwd" || $rtpwd == "" ]]; do clear echo "\ #======= II. USERS SETUP =========# @@ -224,12 +224,12 @@ while [ ! $rtrtpwd = "$rtpwd" ] || [ $rtpwd = "" ]; do echo "Confirm root password:" echo -n "> " read -r -s rtrtpwd - if [ ! "$rtrtpwd" = "$rtpwd" ]; then + if [[ $rtrtpwd != "$rtpwd" ]]; then echo && echo echo "Password mismatch, retrying..." sleep 2 fi - if [ "$rtpwd" = "" ]; then + if [[ $rtpwd = "" ]]; then echo && echo echo "Password is empty, retrying..." sleep 2 @@ -263,12 +263,12 @@ if [[ $answr == y || $answr == Y || $answr == yes || $answr == Yes || $answr == echo "Confirm user password:" echo -n "> " read -r -s usrusrpwd - if [ ! "$usrusrpwd" = "$usrpwd" ]; then + if [[ $usrusrpwd != "$usrpwd" ]]; then echo && echo echo "Password mismatch, retrying..." sleep 2 fi - if [ "$usrpwd" == "" ]; then + if [[ $usrpwd == "" ]]; then echo && echo echo "Password is empty, retrying..." sleep 2 @@ -365,7 +365,7 @@ echo "\ # # #=================================#" echo && echo -dd if=/dev/zero of="$drv" bs=512 count=1 +dd if=/dev/zero of="$drv" bs=512 count=1 > /dev/null sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << FDISK_INPUT | fdisk "$drv" o # create a new DOS partition table n # new partition (/dev/sdx1) @@ -399,10 +399,10 @@ t # change partition type 82 # swap partition type w # write the partition table and quit FDISK_INPUT -mkswap "$drv""2" -mkfs.fat -F32 "$drv""1" -mkfs.ext4 "$drv""3" -mkfs.ext4 "$drv""4" +mkswap "$drv""2" > /dev/null +mkfs.fat -F32 "$drv""1" > /dev/null +mkfs.ext4 "$drv""3" > /dev/null +mkfs.ext4 "$drv""4" > /dev/null sleep 2 clear echo "\ |