The Meowgorithm Dotfiles, Collectors’ Edition
#!/usr/bin/env bash
# This is an Archlinux installation script for my personal machine. Some notes:
#
# Nvidia GeForce RTX 3090
# M.2 drive mounted at /dev/nvme0n1
#
# We're assuming the bootloader is already setup, so we simply reformat the main
# partition.
#
# PROMPT FOR USERNAME AND PASSWORDS
#
username=""
username_confirm=""
password=""
password_confirm=""
root_password=""
root_password_confirm=""
while [[ $username == "" || $username != $username_confirm ]]
do
printf "Enter a username:\n> "
read username
printf "Confirm the username:\n> "
read username_confirm
if [[ $username != $username_confirm ]]; then
printf "Those usernames don't match. "
fi
done
while [[ $password == "" || $password != $password_confirm ]]
do
printf "\nEnter a password for that user:\n> "
read -s password
printf "\nConfirm the password:\n> "
read -s password_confirm
printf "\n"
if [[ $password != $password_confirm ]]; then