Merge pull request #22 from xombiemp/master

Download Directory fix for multiple spaces
This commit is contained in:
Henric Andersson 2015-09-30 23:02:17 -07:00
commit cfaa29d804

View file

@ -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