summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-05-04 21:43:50 +0200
committerDave Reisner <dreisner@archlinux.org>2014-09-22 14:25:43 +0200
commitbe00fcd47b9fa6ebdab7173372ab219514e0b88d (patch)
tree621b40248620108ec68e38d44d24395919167fef
parent651f8f834ff4076ece781d276cdc60137c961081 (diff)
downloaddevtools-be00fcd47b9fa6ebdab7173372ab219514e0b88d.tar.gz
devtools-be00fcd47b9fa6ebdab7173372ab219514e0b88d.tar.xz
makechrootpkg: use a simpler/safer expression with eval
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
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