1
0

old condition

This commit is contained in:
Marco Maatz 2024-10-24 11:47:59 +02:00
parent 259ce76c9b
commit 18c5c71a14

View File

@ -33,7 +33,7 @@ jobs:
run: |
upload_name=${{ inputs.fileName }}
if [ -n "${{ inputs.uploadName }}"]; then
if [ "${{ inputs.uploadName }}" != "" ]; then
echo "Renaming file to ${{ inputs.uploadName }}"
mv ${{ inputs.fileName }} ${{ inputs.uploadName }}
upload_name=${{ inputs.uploadName }}
@ -44,7 +44,7 @@ jobs:
echo "Uploading finished $upload_name"
echo "TXT Filename is ${{ inputs.txtFileName }}"
if [ -n "${{ inputs.txtFileName }}" ] && [ -n "${{ inputs.txtFileContent }}" ]; then
if [ "${{ inputs.txtFileName }}" != "" ] && [ "${{ inputs.txtFileContent }}" != "" ]; then
echo "Uploading additional Text File ${{ inputs.txtFileName }}"
printf "%b" "${{ inputs.txtFileContent }}" > ${{ inputs.txtFileName }}
curl -T ./${{ inputs.txtFileName }} ${{ vars.FTP_SERVER_URL }}${{ inputs.ftpPath }} --user "${{ vars.FTP_USER }}:${{ vars.FTP_PASSWORD }}"