Fixed issue where ~ is used in DOWNLOADDIR

Some commands don't like it when a path has ~ in it, so
now we convert that into a regular path.
This commit is contained in:
Henric Andersson 2015-09-19 09:50:00 -07:00
parent f405426fba
commit 46f89c38a7

View file

@ -131,6 +131,17 @@ if [ "${AUTOINSTALL}" == "yes" ]; then
fi
fi
# Make sure download directory is sane
if [ ! -d "${DOWNLOADDIR}" ]; 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
# Detect if we're running on redhat instead of ubuntu
REDHAT=no;
PKGEXT='.deb'