Ver código fonte

Flip quoting in variable set command

The quoting as-is was broken and would result in a junk output. This
way, the proper value is obtained.
Joshua M. Boniface 4 anos atrás
pai
commit
2d8d3ba826
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      .ci/azure-pipelines-package.yml

+ 1 - 1
.ci/azure-pipelines-package.yml

@@ -85,7 +85,7 @@ jobs:
     value: 0.0.0
 
   steps:
-  - script: echo '##vso[task.setvariable variable=JellyfinVersion]$( awk -F "/" "{ print $NF }" <<<"$(Build.SourceBranch)" | sed "s/^v//" )'
+  - script: echo "##vso[task.setvariable variable=JellyfinVersion]$( awk -F '/' '{ print $NF }' <<<'$(Build.SourceBranch)' | sed 's/^v//' )"
     displayName: Set release version (stable)
     condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')