Merge pull request #262 from kvudata/patch-1

elsif -> elif
This commit is contained in:
Rico Sta. Cruz 2017-11-15 23:57:51 +08:00 committed by GitHub
commit 691227ccfe
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 ```bash
if [ -z "$string" ]; then if [ -z "$string" ]; then
echo "String is empty" echo "String is empty"
elsif [ -n "$string" ]; then elif [ -n "$string" ]; then
echo "String is not empty" echo "String is not empty"
fi fi
``` ```
@ -350,7 +350,7 @@ Conditionals
# String # String
if [ -z "$string" ]; then if [ -z "$string" ]; then
echo "String is empty" echo "String is empty"
elsif [ -n "$string" ]; then elif [ -n "$string" ]; then
echo "String is not empty" echo "String is not empty"
fi fi
``` ```