mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
I was still getting an error because only the first space in my DOWNLOADDIR was getting replaced. Adding the other / tells the expansion to match all occurrences.
This commit is contained in:
parent
c280afea94
commit
db8bebc94f
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ fi
|
|||
|
||||
|
||||
# Remove any ~ or other oddness in the path we're given
|
||||
DOWNLOADDIR="$(eval cd ${DOWNLOADDIR/ /\\ } ; if [ $? -eq 0 ]; then pwd; fi)"
|
||||
DOWNLOADDIR="$(eval cd ${DOWNLOADDIR// /\\ } ; if [ $? -eq 0 ]; then pwd; fi)"
|
||||
if [ -z "${DOWNLOADDIR}" ]; then
|
||||
echo "Error: Download directory does not exist or is not a directory"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue