From ebb04485c8ef1600e260d06331f055184a78b2f7 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Fri, 22 Nov 2024 05:13:45 +0000 Subject: [PATCH] readme: Update docs a bit to be clearer --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bda0a0a..ce77432 100644 --- a/README.md +++ b/README.md @@ -12,15 +12,12 @@ Returns true if inside CI. Otherwise returns false. ## `inside-ci` or `in-ci` -Returns code 0 if inside CI. Otherwise returns an error code of 1. +Returns error code 0 if inside CI. -* `inside-ci || echo 'We are not inside CI, install some stuff'` -* `in-ci && echo 'We are inside CI, install some stuff'` - -Example: - -`is-ci || husky install` +* `in-ci && echo 'running inside CI'` ## `not-ci` -Inverse of the above command +Inverse of the above: + +`not-ci && husky install`