mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Simplify DOWNLOADDIR check to remove dangerous eval call
This commit is contained in:
parent
fcdcf1037a
commit
ca4320db8e
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ fi
|
|||
|
||||
|
||||
# Remove any ~ or other oddness in the path we're given
|
||||
DOWNLOADDIR="$(eval cd ${DOWNLOADDIR// /\\ } ; if [ $? -eq 0 ]; then pwd; fi)"
|
||||
DOWNLOADDIR="$(cd ${DOWNLOADDIR// /\\ } && pwd)"
|
||||
if [ -z "${DOWNLOADDIR}" ]; then
|
||||
echo "ERROR: Download directory does not exist or is not a directory" >&2
|
||||
cronexit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue