Need help understanding this script I cannot figure out what the -z
condition means for first line then the -z
with the "$1"
in the if statement
Here is the script:
while [ -z "$USERNAME" ]
do
if [ -z "$1" ]
then
unset ans
unset USER
echo "What is the username you would like to add?"
read USER
echo "Is" $USER " the correct username? [y/n]"
read ans
case "$ans" in
y|Y|yes|Yes|YES)
USERNAME=$USER
;;