fix add_project_versioning_to_ffmpeg

This commit is contained in:
2025-08-22 11:51:41 -05:00
parent bd5d5aaec9
commit 21d3167feb
3 changed files with 23 additions and 31 deletions

View File

@@ -40,7 +40,7 @@ check_compile_opts_override() {
declare -n defOptVal="DEFAULT_${opt}"
declare -n optVal="${opt}"
# use given value if not overridden
if [[ -n ${optVal} && ${optVal} != "${defOptVal}" ]]; then
if [[ -v optVal && ${optVal} != "${defOptVal}" ]]; then
echo_info "setting given value for ${opt}=${optVal}"
declare -g "${opt}=${optVal}"
else