From b37e4abc4ec13c54e095e8fda0ae8ab24bbeb68d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 06:42:16 +0100 Subject: [PATCH] not --- bash/util.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bash/util.sh diff --git a/bash/util.sh b/bash/util.sh new file mode 100644 index 0000000..e3781a7 --- /dev/null +++ b/bash/util.sh @@ -0,0 +1,7 @@ +not() { + case "${1}" in + "false") echo "true" ;; + "true") echo "false" ;; + *) ;; + esac +}