From 1b891407a3eac6a36ed6395b5e1964d0c6fbb3ce Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 14 May 2024 12:20:10 +0200 Subject: [PATCH] Allow source to be evaluated only when group is matched --- autoinstall/run_command.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoinstall/run_command.sh b/autoinstall/run_command.sh index f82eb34..30142ef 100644 --- a/autoinstall/run_command.sh +++ b/autoinstall/run_command.sh @@ -30,9 +30,13 @@ _install_entry() { install_args+=("--completions=$completions") fi + if [[ $source = \$* ]] + then + source=$(eval "echo $source") + fi install_args+=("$source") - install_args+=("$target") + install_args+=("$(eval "echo $target")") "$0" "${install_args[@]}" }