From 8a5de81a8c07a18a1af2e78aa5f79e68af92e17f Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 21 Jul 2023 19:03:02 +0200 Subject: [PATCH] cheks --- x | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x b/x index e1bb9e6..6af3daa 100644 --- a/x +++ b/x @@ -13,27 +13,27 @@ GIT_USER_MAIL=michael.grote@posteo.de GIT_REPO_REMOTE_NAME=origin # Checks -if [ ! -v $GIT_REPO_PATH ]; then +if [ -z $GIT_REPO_PATH ]; then echo "GIT_REPO_PATH is not set." exit 3 fi -if [ ! -v $GIT_REPO_BRANCH ]; then +if [ -z $GIT_REPO_BRANCH ]; then echo "GIT_REPO_BRANCH is not set." exit 3 fi -if [ ! -v $GIT_USERNAME ]; then +if [ -z $GIT_USERNAME ]; then echo "GIT_USERNAME is not set." exit 3 fi -if [ ! -v $GIT_USER_MAIL ]; then +if [ -z $GIT_USER_MAIL ]; then echo "GIT_USER_MAIL is not set." exit 3 fi -if [ ! -v $GIT_REPO_REMOTE_NAME ]; then +if [ -z $GIT_REPO_REMOTE_NAME ]; then echo "GIT_REPO_REMOTE_NAME is not set." exit 3 fi -if [ ! -v $DEVICES ]; then +if [ -z $DEVICES ]; then echo "DEVICES is not set." exit 3 fi