10 ms·
FYI, I think you forgot some important quotes in your script. Try shellcheck? > mkdir -p $(dirname "$2")
by dataflow 2y ago
FYI, I think you forgot some important quotes in your script. Try shellcheck?
> mkdir -p $(dirname "$2")
- jlokier 2y agoThat'll handle whitespace in paths, but if you want it to handle all path characters, dirname and mkdir need "--" here too.