Commit be00fcd4 authored by Dave Reisner's avatar Dave Reisner

makechrootpkg: use a simpler/safer expression with eval

parent 651f8f83
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment