Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adr init with spaces in "alternate-dir" path fails #72

Open
brokosz opened this issue Oct 2, 2018 · 2 comments
Open

adr init with spaces in "alternate-dir" path fails #72

brokosz opened this issue Oct 2, 2018 · 2 comments

Comments

@brokosz
Copy link

brokosz commented Oct 2, 2018

Doing an adr init with a path that has spaces in it fails; then uses the default.

:~$ mkdir path\ with\ spaces
:~$ cd path\ with\ spaces/
:~/path with spaces$ adr init
/usr/local/Cellar/adr-tools/3.0.0/bin/_adr_dir: line 16: [: too many arguments
doc/adr/0001-record-architecture-decisions.md
dvaillant added a commit to dvaillant/adr-tools that referenced this issue Jan 29, 2019
dvaillant added a commit to dvaillant/adr-tools that referenced this issue Jan 30, 2019
Patater pushed a commit to Patater/adr-tools that referenced this issue Aug 18, 2020
@chipbite
Copy link

Yupo, still there. Hmm.. is there an active fork...

@austinrscott
Copy link

austinrscott commented Aug 29, 2022

I'm experiencing this too

EDIT: I was experiencing it in release 3.0.0 but yeah, the fix is on line 16 of the src/_adr_dir file:
-while [ $(absdir $reldir) != / ]
+while [ "$(absdir $reldir)" != / ]

The issue disappears after that is changed.

@artnim artnim mentioned this issue Apr 26, 2024
halostatue pushed a commit to halostatue/adr-tools that referenced this issue Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants