mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-08 06:00:52 -07:00
Misunderstood issue, now properly fixed
This commit is contained in:
parent
46f89c38a7
commit
eef0745da8
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue