summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-12-28 03:09:30 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-12-28 11:30:29 +0000
commit3fc30f5b4d03344f3c1860ed005428a75ccc939a (patch)
tree2b8d600a042d90ae6e7cea1a8f90966eda7aa2eb /home
parent580b641437d0d4b6069bae09dfb746255dd3ee58 (diff)
feat: prompt kernel upgrade need reboot
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/upd2
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 () {