mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-09 11:41:33 -05:00
Update Fedora-WorkStation-33.sh
This commit is contained in:
parent
f7ade7918e
commit
8dcc133c04
@ -15,6 +15,29 @@ output(){
|
||||
echo -e '\e[36m'$1'\e[0m';
|
||||
}
|
||||
|
||||
promptPassphrase() {
|
||||
PASS=""
|
||||
PASSCONF=""
|
||||
while [ -z "$PASS" ]; do
|
||||
read -s -p "Passphrase: " PASS
|
||||
echo ""
|
||||
done
|
||||
|
||||
while [ -z "$PASSCONF" ]; do
|
||||
read -s -p "Confirm passphrase: " PASSCONF
|
||||
echo ""
|
||||
done
|
||||
echo ""
|
||||
}
|
||||
|
||||
getPassphrase() {
|
||||
promptPassphrase
|
||||
while [ "$PASS" != "$PASSCONF" ]; do
|
||||
output "Passphrases did not match, try again..."
|
||||
promptPassphrase
|
||||
done
|
||||
}
|
||||
|
||||
#Moving to the home directory
|
||||
#Note that I always use /home/${USER} because gnome-terminal is wacky and sometimes doesn't load the environment variables in correctly (Right click somewhere in nautilus, click on open in terminal, then hit create new tab and you will see.)
|
||||
cd /home/${USER} || exit
|
||||
|
Loading…
Reference in New Issue
Block a user