Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 5beea25

Browse files
author
Joshua Wehner
committed
welcome should ask for name
1 parent 500b7e4 commit 5beea25

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

welcome

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
#!/bin/sh
22

3+
answer=$@
4+
#Ask for instructor unless specified
5+
if [ -z "$1" ];
6+
then
7+
printf "Instructor name? "
8+
read answer
9+
fi
10+
11+
clear
12+
313
echo '-------------------------------------------------'
414
echo 'Welcome to class on:' `date`
5-
echo "I'm Matthew McCullough, your instructor "
15+
echo "I'm ${answer}, your instructor "
616
echo '-------------------------------------------------'
717
echo
8-

0 commit comments

Comments
 (0)