From 6c38a3bbaac87bbaa7155f85c386a9aade99a543 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 24 Aug 2022 09:11:06 -0700 Subject: [PATCH] add echo $? to show exit code --- README.md | 4 +++- templates/readme_template | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ffb06377..c6fa2030 100644 --- a/README.md +++ b/README.md @@ -314,7 +314,7 @@ object to the output that will include the magic command information, including the exit code. Here is an example with `ping`: -```json +```bash $ jc --meta-out -p ping -c2 192.168.1.252 { "destination_ip": "192.168.1.252", @@ -343,6 +343,8 @@ $ jc --meta-out -p ping -c2 192.168.1.252 "magic_command_exit": 2 } } +$ echo $? +2 ``` ### Setting Custom Colors via Environment Variable diff --git a/templates/readme_template b/templates/readme_template index a6a5ff81..963c8176 100644 --- a/templates/readme_template +++ b/templates/readme_template @@ -195,7 +195,7 @@ object to the output that will include the magic command information, including the exit code. Here is an example with `ping`: -```json +```bash $ jc --meta-out -p ping -c2 192.168.1.252 { "destination_ip": "192.168.1.252", @@ -224,6 +224,8 @@ $ jc --meta-out -p ping -c2 192.168.1.252 "magic_command_exit": 2 } } +$ echo $? +2 ``` ### Setting Custom Colors via Environment Variable