base/dracut-lib.sh: fixup trim()

no "--"
master
Harald Hoyer 2017-01-18 16:22:26 +01:00
parent e7838a8312
commit 05c2080e51
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ trim() {
local var="$*"
var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters
var="${var%"${var##*[![:space:]]}"}" # remove trailing whitespace characters
printf "%s" -- "$var"
printf "%s" "$var"
}

if [ -z "$DRACUT_SYSTEMD" ]; then