Allow source to be evaluated only when group is matched

This commit is contained in:
Tobias Reisinger 2024-05-14 12:20:10 +02:00
parent aed681d0b0
commit 1b891407a3
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -30,9 +30,13 @@ _install_entry() {
install_args+=("--completions=$completions") install_args+=("--completions=$completions")
fi fi
if [[ $source = \$* ]]
then
source=$(eval "echo $source")
fi
install_args+=("$source") install_args+=("$source")
install_args+=("$target") install_args+=("$(eval "echo $target")")
"$0" "${install_args[@]}" "$0" "${install_args[@]}"
} }