From a4edabb9ed3688eb13b45d5142da8f1efada01ad Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 2 Jan 2014 17:46:33 +0200 Subject: [PATCH] installerfw-sh-functions: fix installerfw_mnt_prefix Signed-off-by: Artem Bityutskiy --- installerfw-sh-functions | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/installerfw-sh-functions b/installerfw-sh-functions index 4f6374e..d865023 100644 --- a/installerfw-sh-functions +++ b/installerfw-sh-functions @@ -42,9 +42,7 @@ installerfw_verify_defined() # tripple "/" in the resulting path. installerfw_mnt_prefix() { - installerfw_verify_defined "INSTALLERFW_MOUNT_PREFIX" - - local path="$INSTALLERFW_MOUNT_PREFIX/$1" + local path="${INSTALLERFW_MOUNT_PREFIX:-}/$1" printf "%s" "$path" | LC_ALL=C sed -e 's/\/\+/\//g' } -- 2.7.4