Add check for password

This commit is contained in:
RealStickman 2021-10-28 09:34:00 +02:00
parent d0844467db
commit e349cbae9f

View File

@ -19,6 +19,17 @@ echo -n "Password: "
read -s -r pass read -s -r pass
echo echo
# prompt a second time
echo -n "Repeat Password: "
read -s -r pass2
echo
# check correctness
if [ ! "$pass" = "$pass2" ]; then
echo "Passwords don't match!"
exit
fi
# go to home dir # go to home dir
cd "$HOME" cd "$HOME"