Commit 41b6ae6
1 parent 120d5b1 commit 41b6ae6
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
|
1 parent 120d5b1 commit 41b6ae6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
|
1 commit comments
domi4484 commentedon Feb 3, 2021
Hallo @jef-n, on my system astyle is complaining that he can't set the correct locale and always print some lines to stderr. Nothing important but because the sterr get redirected to stdout the version check does not work correctly in my case.
Why is this redirect needed?
If the redirect is still needed I would add something like "| tail -n 1 |" to keep only last line which actually contains the version. But I am not sure if it could broke something?
[ $(printf "$($1 --version 2>&1 | tail -n 1 | cut -d ' ' -f4)\\n$min_version" | sort -${SV} | head -n1) = "$min_version" ]