fixed 'Syntax error: redirection unexpected' for shell script

master
Martin Scheidt 2022-02-14 17:49:43 +01:00
parent 82e81aa750
commit 3c83ea03cd
2 changed files with 9 additions and 7 deletions

View File

@ -72,9 +72,9 @@ jobs:
# - name: "create tikz-trackschematic package"
# run: chmod +x create-release.sh && ./create-release.sh -v ${{ steps.tag.outputs.tag }}
# ## opening a debug console
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# with:
# ## limits ssh access and adds the ssh public keys of the listed GitHub users
# limit-access-to-users: railtoolkit,kaat0
## opening a debug console
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
## limits ssh access and adds the ssh public keys of the listed GitHub users
limit-access-to-users: railtoolkit,kaat0

View File

@ -43,7 +43,9 @@ if [ "$batch_mode" = 0 ]; then
else
VERSION_STR=$2
fi
VERSION_NUM=$(cut -c 2- <<< $VERSION_STR)
# remove leading character "v"
VERSION_NUM=$(echo $VERSION_STR | cut -c 2-)
RELEASE="tikz-trackschematic-$VERSION_STR"
## -- commands