From 0e2bbedc53cfd39869ac700a00772f9fd99ebd82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 5 Apr 2021 09:29:32 +0100 Subject: pkgtool.sh:pkgtoolp_mirror(): substitute `~' in ${_mirror_dname{,_git}} w/ ${HOME} for convenience. --- pkgtool.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgtool.sh b/pkgtool.sh index ebabdbbf..f1b742ff 100755 --- a/pkgtool.sh +++ b/pkgtool.sh @@ -54,6 +54,8 @@ pkgtoolp_mirror() { local _mirror_dname="${1}" _mirror_dname_git="${2}" _group_name="" _pkg_name="" _pkg_parent="" _rc=0; umask 022; + _mirror_dname="$(rtl_subst "${_mirror_dname}" "~" "${HOME}")"; + _mirror_dname_git="$(rtl_subst "${_mirror_dname_git}" "~" "${HOME}")"; if ! ex_pkg_load_groups; then _rc=1; _status="Error: failed to load build groups."; elif [ -n "${_mirror_dname}" ]\ -- cgit v1.2.3