Skip to content

Commit

Permalink
kernel-reinstall: fix simple quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
seblu committed Mar 3, 2021
1 parent 57f39ed commit f70d8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel-reinstall
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd "/usr/lib/kernel"

for _k in *; do
[[ -d "$_k" ]] && continue
[[ "$(file -b '$_k')" =~ ^"Linux kernel" ]] || continue
[[ "$(file -b "$_k")" =~ ^"Linux kernel" ]] || continue
ver=${_k#*-}
if [[ -d "/boot/$machineid/$ver" ]]; then
kernel-install remove "$ver"
Expand Down

0 comments on commit f70d8be

Please sign in to comment.