From c828d033f57ff8170b6eb83cff8460e9f34c0e4e Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Sun, 31 Mar 2019 16:04:22 -0600 Subject: mkinitramfs:Small fixes and quoting Moved expected path for msg to /etc/msg, rather than res_path/msg. Quoted paths on install commands. --- mkinitramfs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkinitramfs b/mkinitramfs index 9ea6760..aec7193 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -212,11 +212,11 @@ function main { done # Copy in message file - [[ -f ${res_path}/msg ]] && install -D ${res_path}/msg ${cache}/etc/msg + [ -f "/etc/msg" ] && install -D "/etc/msg" "${cache}/etc/msg" # Copy in init script and add execute - install -D -m 755 ${res_path}/init ${cache}/init + install -D -m 755 "${res_path}/init" "${cache}/init" # Copy in the system shell profile - install -D /etc/profile ${cache}/etc/profile + install -D "/etc/profile" "${cache}/etc/profile" # Create archive image mkcpio ${cache} ${version} -- cgit v1.2.3