summaryrefslogtreecommitdiff
path: root/mkinitramfs
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2019-03-31 16:04:22 -0600
committerAaron Ball <nullspoon@oper.io>2019-03-31 16:04:22 -0600
commitc828d033f57ff8170b6eb83cff8460e9f34c0e4e (patch)
tree16958da46d2d186cf624c487ac5fd3417230771c /mkinitramfs
parent9f9e7bc6d69f9fe776ca2bcb50f45895158f1994 (diff)
downloadmkinitramfs-c828d033f57ff8170b6eb83cff8460e9f34c0e4e.tar.gz
mkinitramfs-c828d033f57ff8170b6eb83cff8460e9f34c0e4e.tar.xz
mkinitramfs:Small fixes and quoting
Moved expected path for msg to /etc/msg, rather than res_path/msg. Quoted paths on install commands.
Diffstat (limited to 'mkinitramfs')
-rwxr-xr-xmkinitramfs6
1 files 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}

Generated by cgit