scripts_grundkurs/Labb5/test_while.sh

13 lines
167 B
Bash
Executable File

#!/bin/bash
# Jack-Benny Persson
# LX13
# Just a small test of while loops
while read -p "Enter password: " Pass
do
if [ "$Pass" = "secret" ]; then
break
fi
done