From 96e91351a246853cd59dc7f0674bad4cd943ec83 Mon Sep 17 00:00:00 2001 From: springhu <47877405+githubhxd1995@users.noreply.github.com> Date: Tue, 19 Jan 2021 11:05:47 +0800 Subject: [PATCH] Update structured_command.md if grep $testuser /etc/passwd then after passwd need ; --- docs/shellBasic/structured_command.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/shellBasic/structured_command.md b/docs/shellBasic/structured_command.md index 6df6a91..c92e656 100644 --- a/docs/shellBasic/structured_command.md +++ b/docs/shellBasic/structured_command.md @@ -60,7 +60,7 @@ $ cat test3.sh # testuser=Christine # -if grep $testuser /etc/passwd then +if grep $testuser /etc/passwd; then echo "This is my first command" echo "This is my second command" echo "I can even put in other commands besides echo:"