"linux-purge" does not support "grep -q ..." on its ouput in simulation mode.
Bug #1883765 reported by
Seb Bonnard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-purge |
Fix Released
|
Undecided
|
Jarno Suni |
Bug Description
Hi,
I've defined the folling alias to cleanup old kernels :
alias cleanupOldKerne
This alias uses the grep command to check for older kernels than removes them if necessary.
The grep command by itself is supported :
$ linux-purge -k 2 -s | grep ', [^0] to remove'
0 upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
But when I use `grep -q`, `linux-purge` complains :
$ linux-purge -k 2 -s | grep -q ', [^0] to remove'
[linux-purge] ERROR: Aborting due to an unknown error (141).
Can you please fix this and increment the version number upto something like v1.0.1 ?
description: | updated |
Changed in linux-purge: | |
assignee: | nobody → Jarno Suni (jarnos) |
status: | New → In Progress |
Changed in linux-purge: | |
status: | In Progress → Fix Committed |
Changed in linux-purge: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
What do you use the version number for? I have been thinking about implementing the versioning, but linux-purge has not been released as a package, yet, and maybe never will. Still, it would be good to know which commit of linux-purge is used, so knowing the git hash id would be good. That is not a version number in sense you could tell of two ids which is newer, though, without referring to git. Maybe counting the commits would do for minor version number, so the next one would be 1.103 or 1.0.103, or I could add separate reporting of the used git commit.