elsif -> elif

Proper syntax is `elif` in bash
This commit is contained in:
Krishna Vudata 2017-11-13 11:09:13 -08:00 committed by GitHub
parent 6bfd554ce9
commit 7814c76bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ See: [Functions](#functions)
```bash
if [ -z "$string" ]; then
echo "String is empty"
elsif [ -n "$string" ]; then
elif [ -n "$string" ]; then
echo "String is not empty"
fi
```
@ -350,7 +350,7 @@ Conditionals
# String
if [ -z "$string" ]; then
echo "String is empty"
elsif [ -n "$string" ]; then
elif [ -n "$string" ]; then
echo "String is not empty"
fi
```