From dedc589287b1b092a29f85ada63fb631cd475f87 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Thu, 31 Dec 2020 01:04:06 +0200 Subject: [PATCH] Added --version option --- shellnotes.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shellnotes.sh b/shellnotes.sh index 2e54a32..049d8dd 100644 --- a/shellnotes.sh +++ b/shellnotes.sh @@ -135,7 +135,8 @@ function listnotes() { function shellnotes() { if [[ $1 == "-v" ]]; then echo "Shellnotes version: 1.2" - + elif [[ $2 == "--version" ]]; then + echo "Shellnotes version: 1.2" elif [[ $1 == "-r" ]]; then echo "Github repository: https://github.com/dmarakom6/shellnotes/blob/master/"