Bash: add `else` example (#1484)

I always forget if `else` is to be followed by a `;` or not. Add it to the conditionals chapter where I would expect it.
This commit is contained in:
Zeebrommer 2020-07-02 16:45:04 +02:00 committed by GitHub
parent b82849e840
commit 87ed01b739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -404,6 +404,8 @@ if [[ -z "$string" ]]; then
echo "String is empty"
elif [[ -n "$string" ]]; then
echo "String is not empty"
else
echo "This never happens"
fi
```