]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/dracut-lib.sh:getargs() don't return 1 for empty values
authorHarald Hoyer <harald@redhat.com>
Fri, 9 Oct 2015 09:30:03 +0000 (11:30 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 15:49:09 +0000 (16:49 +0100)
getargs() is only used with real values and not booleans.

So, return the values only.

(cherry picked from commit d1f7f2ac046c77913d1ca97cf8414d9226ae1286)

modules.d/99base/dracut-lib.sh

index 1eaf4b338e539ee62dec9b82166239825f4a625d..03a283cb74eb4cc26b5d0d702b58d144feafad97 100755 (executable)
@@ -330,8 +330,6 @@ getargs() {
     if [ -n "$_gfound" ]; then
         if [ $# -gt 0 ]; then
             printf '%s' "$*"
-        else
-            printf 1
         fi
         debug_on
         return 0