2020-06-16 17:59:07 |
Seb Bonnard |
description |
Hi,
I've defined the folling alias to cleanup old kernels :
`alias cleanupOldKernels="\linux-purge -k 2 -s | grep -q ', [^0] to remove' && sudo screen -L \linux-purge -k 2"`
This alias uses the `grep` command to check for older kernels than removes them if necessary.
The `grep` by itself is supported :
```bash
$ 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 :
```bash
$ 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 ? |
Hi,
I've defined the folling alias to cleanup old kernels :
alias cleanupOldKernels="\linux-purge -k 2 -s | grep -q ', [^0] to remove' && sudo screen -L \linux-purge -k 2"
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 ? |
|