Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork940
Commite973f52
committed
Use some handy bash-isms in version check script
The script is nonportable to other shells already because of itsuse of trap (and other features, such as implicit assumptions madeabout echo, and the function keyword), which its hashbang alreadyclearly 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.1 parent0920371 commite973f52
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
|
0 commit comments
Comments
(0)