From 662746458344aa237b322d13121094eeddf54fdd Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Wed, 23 Oct 2024 15:36:05 +0200 Subject: [PATCH] check if empty --- .gitea/workflows/setPackageVersion.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/setPackageVersion.yaml b/.gitea/workflows/setPackageVersion.yaml index 6b82263..2c6b629 100644 --- a/.gitea/workflows/setPackageVersion.yaml +++ b/.gitea/workflows/setPackageVersion.yaml @@ -24,7 +24,7 @@ jobs: echo "Setting Version to ${{ inputs.version }}" git_path=$(pwd) - if [ "${{ inputs.packagePath }}" != "null" ]; then + if [ -n "${{ inputs.packagePath }}" ]; then echo "Change Directory to ${{ inputs.packagePath }}" cd ${{ inputs.packagePath }} fi @@ -41,7 +41,7 @@ jobs: fi package_name=package.json - if [ "${{ inputs.packagePath }}" != "null" ]; then + if [ -n "${{ inputs.packagePath }}" ]; then package_name="${{ inputs.packagePath }}package.json" fi