Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vir-linden committed May 2, 2024
1 parent 7f23f16 commit eb0f963
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ jobs:
# determine the viewer channel from the branch name
branch=$AUTOBUILD_VCS_BRANCH
echo "branch=$branch" >> "$GITHUB_OUTPUT"
IFS='/' read -ra ba <<< $branch
prefix=${ba[0]}
if [ "$prefix" == "project" ]; then
proj_name=$(echo ${ba[1]} | sed -e 's/_/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2));}1')
export viewer_channel="Second Life Project $proj_name"
elif [ "$prefix" == "release" ] || [ "$prefix" == "main" ];
IFS='_' read -ra prj << "${ba[1]}"
# uppercase first letter of each word
export viewer_channel="Second Life Project ${prj[*]^}"
elif [ "$prefix" == "release" || "$prefix" == "main" ];

This comment has been minimized.

Copy link
@nat-goodspeed

nat-goodspeed May 2, 2024

Collaborator

Pretty sure you need the [[ double square brackets ]] for this to work. Double square brackets are understood by bash; a single left square bracket invokes the test executable, which wants to see -o instead of ||.

then
export viewer_channel="Second Life Release"
else
Expand Down

0 comments on commit eb0f963

Please sign in to comment.