From b291e67744d5c807ab64574422f0dbf06909edb1 Mon Sep 17 00:00:00 2001 From: Harwin Borger Date: Thu, 24 Sep 2020 22:09:26 +0200 Subject: [PATCH] Update version script --- scripts/version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/version.sh b/scripts/version.sh index 77b2d29..22a7d1f 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -8,8 +8,8 @@ WHITE='\033[38;2;255;255;255m' NC='\033[0m' # No Color BOLD='\033[1m' -if git diff-index HEAD; -then +CHANGED=$(git diff-index --name-only HEAD) +if [ -n "$CHANGED" ]; then git status echo -e "${RED}First commit your files please...${NC}" exit