diff options
author | André Erdmann <dywi@mailerd.de> | 2015-03-02 19:05:12 +0100 |
---|---|---|
committer | Andre Erdmann <dywi@mailerd.de> | 2019-04-27 18:26:00 +0200 |
commit | 127516b964ef8f0a8ec63e7caf4d19720bb5b83b (patch) | |
tree | 1a20543a742ccc93c166391925b92469a75a5522 | |
parent | functions.sh: do not hardcode cryptsetup path (diff) | |
download | better-initramfs-127516b964ef8f0a8ec63e7caf4d19720bb5b83b.tar.xz better-initramfs-127516b964ef8f0a8ec63e7caf4d19720bb5b83b.zip |
functions.sh: make eval-findfs command slightly more robust
Store the complete output of the findfs command in \$1,
not just the first word.
-rwxr-xr-x | sourceroot/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sourceroot/functions.sh b/sourceroot/functions.sh index 672fd11..3177971 100755 --- a/sourceroot/functions.sh +++ b/sourceroot/functions.sh @@ -128,7 +128,7 @@ resolve_device() { device="$(eval echo \$$1)" case "${device}" in LABEL\=*|UUID\=*) - eval $1="$(findfs $device)" + eval "$1=\"$(findfs $device)\"" if [ -z "$(eval echo \$$1)" ]; then eerror "Wrong UUID or LABEL." rescueshell |