From 46906941814c2ad0b6ef0359ba92bf9ae18f4f99 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 21 Apr 2019 12:14:51 +1200 Subject: [PATCH] Remove trailing space from bin output --- CHANGELOG.md | 5 +++++ bin/n | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0af6a8a..a3db06b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bin/n b/bin/n index cd2a192..a212ddc 100755 --- a/bin/n +++ b/bin/n @@ -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