Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use some handy bash-isms in version check script
The script is nonportable to other shells already because of its use of trap (and other features, such as implicit assumptions made about echo, and the function keyword), which its hashbang already clearly conveys. This uses: - $(<X) in place of $(cat X), to have the shell read the file directly rather than using cat. - printf -v in one place to set a variable rather than printing. This eliminates a command substitution that was harder to read.
- Loading branch information