Skip to content

Commit

Permalink
[Fix] default_packages: work when the file lacks a trailing newline
Browse files Browse the repository at this point in the history
Fixes #1995.
  • Loading branch information
ljharb committed Feb 1, 2019
1 parent 02997b0 commit d1fc1c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/fast/Unit tests/nvm_default_packages
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ object-inspect@1.0.2
stevemao/left-pad
EOF

cat $FILE | awk '{printf $1}' > $FILE # strip trailing newline

nvm install v6.10.1 2>&1
EXIT_CODE=$?
[ "_$EXIT_CODE" = "_0" ] || die "expected 'nvm install v6.10.1' to exit with 0, got $EXIT_CODE"
Expand Down

0 comments on commit d1fc1c8

Please sign in to comment.