From 5876669273dddecd7ed1147d04c12cce09ae79fe Mon Sep 17 00:00:00 2001 From: Hagai Cohen Date: Mon, 23 Nov 2015 18:56:19 +0200 Subject: [PATCH] Fixed enviorment variables support for path expansion Signed-off-by: Hagai Cohen --- scripts/helpers/plugin_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers/plugin_functions.sh b/scripts/helpers/plugin_functions.sh index 124c40f..25f9d58 100644 --- a/scripts/helpers/plugin_functions.sh +++ b/scripts/helpers/plugin_functions.sh @@ -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() {