Börjat på labb 5
This commit is contained in:
parent
9283ee5940
commit
3ee091887f
12
Labb5/test_while.sh
Executable file
12
Labb5/test_while.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/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
|
Loading…
x
Reference in New Issue
Block a user