Strip newline character from package-scripts's version
package-scripts
's version is identified by a git ls-tree
command, whose output has a newline character at the end.
[1] pry(main)> `git ls-tree HEAD -- config/templates/package-scripts | awk '{ print $3 }'`
=> "6bb537a9b770897dd5366fce32ebeb8e75e013aa\n"
[2] pry(main)> `git ls-tree HEAD -- config/templates/package-scripts | awk '{ print $3 }'`.strip
=> "6bb537a9b770897dd5366fce32ebeb8e75e013aa"