diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 03:09:30 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-12-28 11:30:29 +0000 |
commit | 3fc30f5b4d03344f3c1860ed005428a75ccc939a (patch) | |
tree | 2b8d600a042d90ae6e7cea1a8f90966eda7aa2eb /home | |
parent | 580b641437d0d4b6069bae09dfb746255dd3ee58 (diff) |
feat: prompt kernel upgrade need reboot
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/upd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index adf4e70f..69c7cf8a 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -41,7 +41,7 @@ updated pacman packages: $pacpacs updated aur packages: $aurpacs pacdiff: $(pacdiff -o | tr '\n' ' ') checkrebuild: $(checkrebuild) -" +$(if echo "$pacpacs" | grep -q 'linux-[0-9]'; then echo 'kernel upgraded, need reboot'; fi)" } qb () { |