Fix: don't add / to path if sanitized directory name is empty
This commit is contained in:
parent
9dc779fd5c
commit
a0a1f6f2fe
@ -86,7 +86,8 @@ getDestDir() {
|
|||||||
echo "$thispart" >&${toascii[1]}
|
echo "$thispart" >&${toascii[1]}
|
||||||
read -r -u${toascii[0]} thispart
|
read -r -u${toascii[0]} thispart
|
||||||
fi
|
fi
|
||||||
destdir+="/$(sanitizeFile "$thispart" dir)"
|
sanitized="$(sanitizeFile "$thispart" dir)"
|
||||||
|
destdir+="${sanitized:+/}$sanitized"
|
||||||
part=${part#*/}
|
part=${part#*/}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user