More portable conditional

This commit is contained in:
Jo Shields 2023-12-14 09:28:14 -05:00
parent e61e75584a
commit 1a4672e257

View file

@ -211,7 +211,7 @@ jobs:
fi
# Only use Docker stuff on Linux
if [[ "`uname -s`" == "Linux" ]]; then
if [[ -n "${{ parameters.container }}" ]]; then
docker run --rm -v "$(sourcesPath):/vmr" -w /vmr ${{ parameters.container }} ./prep.sh $customPrepArgs
else
cd $(sourcesPath)