parent
6bfd554ce9
commit
7814c76bed
4
bash.md
4
bash.md
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue