From: Harald Hoyer Date: Fri, 9 Oct 2015 09:30:03 +0000 (+0200) Subject: base/dracut-lib.sh:getargs() don't return 1 for empty values X-Git-Tag: RHEL-7.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1f7f2ac046c77913d1ca97cf8414d9226ae1286;p=thirdparty%2Fdracut.git base/dracut-lib.sh:getargs() don't return 1 for empty values getargs() is only used with real values and not booleans. So, return the values only. --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 50bcf8406..cb1ddd76b 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -320,8 +320,6 @@ getargs() { if [ -n "$_gfound" ]; then if [ $# -gt 0 ]; then echo -n "$@" - else - echo -n 1 fi debug_on return 0