1
0

check if empty

This commit is contained in:
Marco Maatz 2024-10-23 15:36:05 +02:00
parent 8eb6214bea
commit 6627464583

View File

@ -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