mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-16 02:02:58 -07:00
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:
parent
f405426fba
commit
46f89c38a7
1 changed files with 11 additions and 0 deletions
|
@ -131,6 +131,17 @@ if [ "${AUTOINSTALL}" == "yes" ]; then
|
||||||
fi
|
fi
|
||||||
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
|
# Detect if we're running on redhat instead of ubuntu
|
||||||
REDHAT=no;
|
REDHAT=no;
|
||||||
PKGEXT='.deb'
|
PKGEXT='.deb'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue