Skip to content

Commit

Permalink
(Workflow) Ongoing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRohn committed Mar 19, 2024
1 parent 0aa7b08 commit e87c9e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ runs:
# Split the generation into an array to replace the last segment with the patch
IFS='.' read -r -a version_parts <<< "$${{ inputs.generation }}"
version_parts[-1]=${{ inputs.patch}}
new_generation="${version_parts[*]}"
new_generation=$(IFS='.'; echo "${version_parts[*]}")
installation_name="CODESYS $(echo "${new_generation}" | sed 's/ /./g')"
if [[ -z "${{ inputs.installation-directory }}" ]]; then
if [ "${{ inputs.architecture }}" == "64" ]; then
installation_path="C:\Program Files\CODESYS ${formatted_generation}"
installation_path="C:\Program Files\CODESYS ${installation_name}"
else
installation_path="C:\Program Files (x86)\CODESYS ${formatted_generation}"
installation_path="C:\Program Files (x86)\CODESYS ${installation_name}"
fi
else
installation_path="${{ inputs.installation-directory }}"
Expand Down

0 comments on commit e87c9e0

Please sign in to comment.