0
0
mirror of https://github.com/tj/n.git synced 2024-11-25 07:39:21 +01:00

Remove trailing space from bin output

This commit is contained in:
John Gee 2019-04-21 12:14:51 +12:00
parent 62b3056428
commit 4690694181
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Fixed
- remove trailing space from `bin` output [#456]
### Changed
- internal: improve shell script based on ShellCheck suggestions, quoting variables use etc [#187] [#465]
@ -78,6 +82,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
[#416]: https://github.com/tj/n/issues/416
[#441]: https://github.com/tj/n/issues/441
[#448]: https://github.com/tj/n/issues/448
[#456]: https://github.com/tj/n/issues/456
[#465]: https://github.com/tj/n/issues/465
[#466]: https://github.com/tj/n/issues/466
[#467]: https://github.com/tj/n/issues/467

2
bin/n
View File

@ -599,7 +599,7 @@ display_bin_path_for_version() {
local bin="${VERSIONS_DIR[$DEFAULT]}/$version/bin/node"
if test -f "$bin"; then
printf "$bin \n"
printf "$bin\n"
else
abort "$1 is not installed"
fi