Misunderstood issue, now properly fixed

This commit is contained in:
Henric Andersson 2015-09-19 09:53:30 -07:00
parent 46f89c38a7
commit eef0745da8

View file

@ -131,14 +131,13 @@ if [ "${AUTOINSTALL}" == "yes" ]; then
fi
fi
# Make sure download directory is sane
if [ ! -d "${DOWNLOADDIR}" ]; then
# Remove any ~ or other oddness in the path we're given
eval pushd "${DOWNLOADDIR}" > /dev/null 2>/dev/null
if [ $? -ne 0 ]; then
echo "Error: Download directory does not exist or is not a directory"
exit 1
fi
# Remove any ~ or other oddness in the path we're given
eval pushd "${DOWNLOADDIR}" > /dev/null
DOWNLOADDIR="$(pwd)"
popd > /dev/null