From 2a5f0991fac1b010d97e42ebc63aee7ae8dc141a Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 23 Oct 2021 09:22:45 -0700 Subject: [PATCH] demos: replace printf by regular shell variable expansion This makes it clearer where each variable goes since they're not all called "%s". I'm about to add more variables. --- demos/demo_helpers.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/demos/demo_helpers.sh b/demos/demo_helpers.sh index 7c6bf2a8d..6e5426457 100644 --- a/demos/demo_helpers.sh +++ b/demos/demo_helpers.sh @@ -45,14 +45,14 @@ new_tmp_dir() { run_demo() { local title="$1" - local expect_script="$2" - expect_script=$(printf "source $BASE_DIR/demo_helpers.tcl + local test_script="$2" + local expect_script="source $BASE_DIR/demo_helpers.tcl spawn asciinema rec -c \"PS1='$ ' bash --norc\" --title \"$title\" expect_prompt -%s +$test_script quit_and_dump_asciicast_path -" "$expect_script") - +" + if [[ "$DEBUG" == true ]]; then echo "$expect_script" | /usr/bin/env expect return