I am trying to make Gitlab CI/CD for building unity3d project automatically
and I did end up with long argument to execute build procedure. Now i'd like to make the script more dynamic for case where some args doesn't really needed e.g case differentiating android build that require key store or not.
So far what I ended up with this
/path/to/unity/unity -other args \
$([ ! -z $UNITY_ASSETS_EXPORT] && -assetPathNames $UNITY_ASSETS_EXPORT)
but it doesn't output anything thus require me to use echo command. Is there any better way for me so I don't litter most of my script with echo for each variable cases ?