Skip to content

Commit

Permalink
Aaargh. Fix Monday morning "the fix is so obvious..."
Browse files Browse the repository at this point in the history
The ${key} here ends up expanded on cmake level so it still doesn't do
what it's supposed to do. Just a simple one-liner, eh?

Fixes: 0c7a3be
  • Loading branch information
pmatilai committed Oct 9, 2023
1 parent 0c7a3be commit db210b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ get_property(TOOLPROGS DIRECTORY ../tools PROPERTY BUILDSYSTEM_TARGETS)

function(os_release var key)
execute_process(
COMMAND sh -c ". /etc/os-release; echo ${key}"
COMMAND sh -c ". /etc/os-release; echo $${key}"
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE value
)
Expand Down

0 comments on commit db210b9

Please sign in to comment.