From 36d0fb5559726d863624c75614f35a875aa2fb6d Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 11 Jun 2012 19:33:05 +0200 Subject: [PATCH] Make recent addition conform to POSIX --- defaults/initrd.scripts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index fd9ac27..f05a746 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -756,7 +756,7 @@ openLUKS() { case $1 in root) local TYPE=ROOT - [ -n "${REAL_ROOT}" ] && local LUKS_NAME="$(echo "$REAL_ROOT" | sed -e 's/.*\///')" + [ -n "${REAL_ROOT}" ] && local LUKS_NAME="`echo "${REAL_ROOT}" | sed -e 's|.*/||'`" ;; swap) local TYPE=SWAP -- 2.26.2