Allow source to be evaluated only when group is matched
This commit is contained in:
parent
aed681d0b0
commit
1b891407a3
1 changed files with 5 additions and 1 deletions
|
@ -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[@]}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue