npryce / adr-tools

Command-line tools for working with Architecture Decision Records
Other
4.53k stars 578 forks source link

Solved _add_dir script error #135

Open fitomad opened 1 year ago

fitomad commented 1 year ago

Script

If the adr documentation path contains blank spaces the scripts fail.

/opt/homebrew/Cellar/adr-tools/3.0.0/bin/_adr_dir: line 16: [: too many arguments

The solution is enclose the script variable located at line 16 into quotes

while [ "$(absdir $reldir)" != / ]

gitignore

Added .DS_Store macOS files to the .gitignore file