From 7814c76bed9ba189f35e8a46df32ec59575904f6 Mon Sep 17 00:00:00 2001 From: Krishna Vudata Date: Mon, 13 Nov 2017 11:09:13 -0800 Subject: [PATCH] elsif -> elif Proper syntax is `elif` in bash --- bash.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash.md b/bash.md index 4b1a704d3..b5687745f 100644 --- a/bash.md +++ b/bash.md @@ -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 ```