fix(SC2162): add -r to read

This commit is contained in:
Eisuke Kawashima
2025-07-14 20:24:26 +09:00
parent cb2e0dc4f5
commit 01e769bc2e
20 changed files with 36 additions and 32 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ _kernel-install_images(){
(( $+functions[_kernel-install_kernels] )) ||
_kernel-install_kernels(){
read _MACHINE_ID < /etc/machine-id
read -r _MACHINE_ID < /etc/machine-id
_kernel=( /lib/modules/[0-9]* )
if [[ "$cmd" == "remove" && -n "$_MACHINE_ID" ]]; then
_kernel=( "/boot/$_MACHINE_ID"/[0-9]* )