summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-06-30 21:22:39 +0200
committerDave Reisner <dreisner@archlinux.org>2011-06-30 21:25:26 +0200
commita594ffca592612f9293454198e56d7ea72b75d14 (patch)
tree2ae96fb9cdb7b5478e4cc181db1054e57662b3b6
parentea07e5a3e7a5fd76b0eb71909ca87ad830cf1be8 (diff)
downloadmkinitcpio-a594ffca592612f9293454198e56d7ea72b75d14.tar.gz
mkinitcpio-a594ffca592612f9293454198e56d7ea72b75d14.tar.xz
function: return with 0 if we reach the end of add_binary
The read loop will intentionally return 1 on EOF, but parse_hook will interpret this as an error, and trip our error handler, reporting a false positive failure.
-rw-r--r--functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions b/functions
index 9c095bc..3e3fee9 100644
--- a/functions
+++ b/functions
@@ -286,6 +286,8 @@ add_binary() {
fi
fi
done < <(_ldd "$binary")
+
+ return 0
}
parse_hook() {