Fixed enviorment variables support for path expansion

Signed-off-by: Hagai Cohen <hagaic@mellanox.com>
This commit is contained in:
Hagai Cohen 2015-11-23 18:56:19 +02:00
parent f75ba16d5f
commit 5876669273
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ tpm_plugins_variable_name="@tpm_plugins"
_manual_expansion() {
local path="$1"
local expanded_tilde="${path/#\~/$HOME}"
echo "${expanded_tilde/#\$HOME/$HOME}"
echo $(echo $expanded_tilde | envsubst)
}
_tpm_path() {