[arch-projects] [devtools] [PATCH 1/3] makechrootpkg: use a simpler/safer expression with eval
Dave Reisner
dreisner at archlinux.org
Sat May 10 09:44:32 EDT 2014
---
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
--
1.9.2
More information about the arch-projects
mailing list