Skip to content

Commit 85cbdac

Browse files
authored
Update deploy.sh
fix version and platform dir
1 parent 805d09d commit 85cbdac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/ci/jenkins/deploy.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ mkdir -p $updater_dir
5050
for artifact in $artifacts ; do
5151
echo "Processing file $artifact"
5252

53-
VERSION=$(echo $(basename $artifact) | cut -f2- -d '_' | cut -f 1-2 -d '.')
54-
PLATFORM=$(echo $VERSION | cut -f 3 -d '-')
55-
53+
_file=$(echo $(basename $artifact) | cut -f2- -d '_')
54+
VERSION=$(echo $_file | cut -f 1 -d '-')
55+
PLATFORM=$(echo $_file | cut -f 3 -d '-' | cut -f 1-2 -d '.')
56+
5657
arch_dir=$PLATFORM
5758

59+
echo "- Version: $VERSION"
5860
echo "- Platform: $arch_dir"
5961
echo ""
6062

0 commit comments

Comments
 (0)