From be00fcd47b9fa6ebdab7173372ab219514e0b88d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 4 May 2014 15:43:50 -0400 Subject: makechrootpkg: use a simpler/safer expression with eval --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makechrootpkg.in b/makechrootpkg.in index 97c7780..5ed7390 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -113,7 +113,7 @@ for arg in "${@:OPTIND}"; do done if [[ -n $SUDO_USER ]]; then - USER_HOME=$(eval echo ~$SUDO_USER) + eval "USER_HOME=~$SUDO_USER" else USER_HOME=$HOME fi -- cgit v1.2.3-24-g4f1b