From 8281750456b969052c4750ba4a46d7857f757879 Mon Sep 17 00:00:00 2001 From: KisaragiEffective <48310258+KisaragiEffective@users.noreply.github.com> Date: Sun, 4 Oct 2020 12:07:24 +0900 Subject: [PATCH] +syntax (sh) --- SC1014.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC1014.md b/SC1014.md index 07925b0..872aff6 100644 --- a/SC1014.md +++ b/SC1014.md @@ -28,7 +28,7 @@ If you want to check the exit status of a certain command, use that command dire If you want to check the output of a command, use `"$(..)"` to get its output, and then use `test` or `[`/`[[` to do a string comparison: -``` +```sh # Check output of `whoami` against the string `root` if [ "$(whoami)" = "root" ] then