Change "~/path" to "${HOME}/path"
Rather than relying on the shell's implicit expansion of ~, which doesn't work when the path is wrapped in quotes anyway, explicitly expand ${HOME}.
This commit is contained in:
parent
dcee211388
commit
4b6b39ac66
|
@ -62,7 +62,7 @@ get_cname() {
|
||||||
# for each argument X, it will replace @X@ with ${X}
|
# for each argument X, it will replace @X@ with ${X}
|
||||||
do_parameter_subst() {
|
do_parameter_subst() {
|
||||||
CNAME=$(get_cname ${NAME})
|
CNAME=$(get_cname ${NAME})
|
||||||
do_cmd source "~/.lwbuildrc" || exit 1
|
do_cmd source "${HOME}/.lwbuildrc" || exit 1
|
||||||
for param in P NAME CNAME AUTHOR EMAIL VIM_MODELINE KATE_MODELINE $@
|
for param in P NAME CNAME AUTHOR EMAIL VIM_MODELINE KATE_MODELINE $@
|
||||||
do
|
do
|
||||||
do_cmd_redir sedscript echo "s,@${param}@,${!param},g" || exit 1
|
do_cmd_redir sedscript echo "s,@${param}@,${!param},g" || exit 1
|
||||||
|
|
Loading…
Reference in New Issue