Skip to content

Commit

Permalink
Fix expressions
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Sep 7, 2023
1 parent 01b2e3a commit e02b38c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test_security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
# version = 2.4.0, plugin_version = 2.4.0.0, qualifier = SNAPSHOT
- name: Pull and Run Docker
run: |
plugin=`basename $(ls build/distributions/*.zip)`
version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-3`
plugin_version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-4`
qualifier=`echo $plugin|awk -F- '{print $5}'| cut -d. -f 1-1`
zipfile=$(ls build/distributions/*.zip)
plugin=$(basename $zipfile)
version=$(echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-3)
plugin_version=$(echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-4)
qualifier=$(echo $plugin|awk -F- '{print $5}'| cut -d. -f 1-1)
if $qualifier!=SNAPSHOT
then
Expand All @@ -48,9 +49,6 @@ jobs:
fi
echo plugin version plugin_version qualifier docker_version
plugin_version="2.10.0.0-SNAPSHOT"
docker_version="2.10.0"
echo "($plugin) ($version) ($plugin_version) ($qualifier) ($docker_version)"
cd ..
Expand Down

0 comments on commit e02b38c

Please sign in to comment.