Skip to content
Snippets Groups Projects
Commit 209c6c40 authored by Philip Müller's avatar Philip Müller
Browse files

[scripts] move to right line

parent edcab5f0
No related branches found
No related tags found
No related merge requests found
......@@ -35,9 +35,9 @@ kernel_install() {
[[ $current = $kernel ]] && err "You can't reinstall your current kernel. Please use 'pacman -Syu' instead to update."
[[ -z $(pacman -Ssq "^$kernel$") ]] && err "Please make sure if the given kernel(s) exist(s).\n$(kernel_repo)"
for pkg in $(pacman -Qqs "$current" | grep -E "^$current$|^$current-\S+$"); do
for pkg in $(pacman -Qqs "$current"); do
pkg=${pkg//$current/$kernel}
[[ -n $(pacman -Ssq "^$pkg$") ]] && pkginstall+=("$pkg")
[[ -n $(pacman -Ssq "^$pkg$" | grep -E "^$pkg$|^$pkg-\S+$") ]] && pkginstall+=("$pkg")
done
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment